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.
commit4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1
authorJohn Ericson <Ericson2314@Yahoo.com>
dateTue 22 May 2018, 17:37 (9 years ago)
parent983e74a
pkgs/development/tools/misc/binutils/default.nix+3−2
@@ -19,10 +19,11 @@ in
1919stdenv.mkDerivation rec {
2020 name = targetPrefix + basename;
2121
22− src = fetchurl {
22+ # HACK to ensure that we preserve source from bootstrap binutils to not rebuild LLVM
23+ src = stdenv.__bootPackages.binutils-unwrapped.src or (fetchurl {
2324 url = "mirror://gnu/binutils/${basename}.tar.bz2";
2425 sha256 = "028cklfqaab24glva1ks2aqa1zxa6w6xmc8q34zs1sb7h22dxspg";
25− };
26+ });
2627
2728 patches = [
2829 # Turn on --enable-new-dtags by default to make the linker set