binutils: Do not needless redownload sources cascading more rebuilds

Unfortunately this is a crude hack that we use the same binutils source
everywhere in the bootstrap chain.
This commit is contained in:
John Ericson 2018-05-22 17:37:29 -04:00 committed by John Ericson
parent 983e74ae4e
commit 4ffa8b6125

View File

@ -19,10 +19,11 @@ in
stdenv.mkDerivation rec {
name = targetPrefix + basename;
src = fetchurl {
# HACK to ensure that we preserve source from bootstrap binutils to not rebuild LLVM
src = stdenv.__bootPackages.binutils-unwrapped.src or (fetchurl {
url = "mirror://gnu/binutils/${basename}.tar.bz2";
sha256 = "028cklfqaab24glva1ks2aqa1zxa6w6xmc8q34zs1sb7h22dxspg";
};
});
patches = [
# Turn on --enable-new-dtags by default to make the linker set