{ stdenv, fetchurl, autoconf, automake, libtool , llvm, libcxx, clang, openssl, libuuid }: let baseParams = rec { name = "cctools-port-${version}"; version = "855"; src = let # Should be fetchFromGitHub but it was whining so this will do for now owner = "tpoechtrager"; repo = "cctools-port"; rev = "7083dddbb0f106d791d313829ea7dc45db90e375"; in fetchurl { url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; sha256 = "017gxlcwgi7xhayjzj9w3fac175p2rm4vjzf9cycq9683m9pmyzj"; }; buildInputs = [ autoconf automake libtool llvm clang openssl libuuid libcxx ]; patches = [ ./ld-rpath-nonfinal.patch ./ld-ignore-rpath-link.patch ]; enableParallelBuilding = true; postPatch = '' patchShebangs tools sed -i -e 's/which/type -P/' tools/*.sh # Workaround for https://www.sourceware.org/bugzilla/show_bug.cgi?id=11157 cat > cctools/include/unistd.h <