summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2018-05-22 17:37:29 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-23 10:06:08 -0400
commit4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1 (patch)
tree8e358a111ca824a33492a4ef612e80123601cf74 /pkgs
parent983e74ae4e9092a302ba281357e33ae9f32a2024 (diff)
downloadnixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.tar
nixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.tar.gz
nixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.tar.bz2
nixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.tar.lz
nixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.tar.xz
nixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.tar.zst
nixpkgs-4ffa8b6125c83d6e49fbe3574edc053db7ea2ec1.zip
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.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/misc/binutils/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix
index fb780734bd7..db0908952dc 100644
--- a/pkgs/development/tools/misc/binutils/default.nix
+++ b/pkgs/development/tools/misc/binutils/default.nix
@@ -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