diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-04-03 12:50:25 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-04-03 13:34:52 -0400 |
commit | adaa110a72175c4f841722ab7d2bee7564656e91 (patch) | |
tree | d21d57153c20ed22b723191670b0b3252f8e93d9 /pkgs/development/libraries/libbfd | |
parent | 97145012565cd4ef9c8c16a426c3ea505ad0ca52 (diff) | |
download | nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.tar nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.tar.gz nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.tar.bz2 nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.tar.lz nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.tar.xz nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.tar.zst nixpkgs-adaa110a72175c4f841722ab7d2bee7564656e91.zip |
binutils: No more darwin conditionals
Since at least d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410, we've had a situation where one should depend on: - `stdenv.cc.bintools`: for executables at build time - `libbfd` or `libiberty`: for those libraries - `targetPackages.cc.bintools`: for exectuables at *run* time - `binutils`: only for specifically GNU Binutils's executables, regardless of the host platform, at run time. and that commit cleaned up this usage to reflect that. This PR flips the switch so that: - `binutils` is indeed unconditionally GNU Binutils - `binutils-raw`, which previously served that role, is gone. so that the correct usage will be enforced going forward and everything is simple. N.B. In a few cases `binutils-unwrapped` (which before and now was unconditionally actual GNU binutils), rather than `binutils` was used to replace old `binutils-raw` as it is friendly towards some cross compilation usage by avoiding a reference to the next bootstrapping change.
Diffstat (limited to 'pkgs/development/libraries/libbfd')
-rw-r--r-- | pkgs/development/libraries/libbfd/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libbfd/default.nix b/pkgs/development/libraries/libbfd/default.nix index ac508908e8f..3f244d399f7 100644 --- a/pkgs/development/libraries/libbfd/default.nix +++ b/pkgs/development/libraries/libbfd/default.nix @@ -1,17 +1,15 @@ { stdenv, buildPackages -, fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison +, fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison, binutils-unwrapped , libiberty, zlib }: -let inherit (buildPackages.buildPackages) binutils-raw; in - stdenv.mkDerivation rec { name = "libbfd-${version}"; - inherit (binutils-raw.bintools) version src; + inherit (binutils-unwrapped) version src; outputs = [ "out" "dev" ]; - patches = binutils-raw.bintools.patches ++ [ + patches = binutils-unwrapped.patches ++ [ ../../tools/misc/binutils/build-components-separately.patch (fetchpatch { url = "https://raw.githubusercontent.com/mxe/mxe/e1d4c144ee1994f70f86cf7fd8168fe69bd629c6/src/bfd-1-disable-subdir-doc.patch"; |