diff options
author | Eric Seidel <gridaphobe@gmail.com> | 2015-05-11 14:30:13 -0700 |
---|---|---|
committer | Eric Seidel <gridaphobe@gmail.com> | 2015-05-11 14:39:36 -0700 |
commit | 395829686d0219b3e14fe6ffae60a24b4e50370b (patch) | |
tree | d8ec773c31ba34feab780dd688b32cf9de0ce0f9 /pkgs/build-support | |
parent | ea0c877858e071d2258680cb4779786ff1f0dea0 (diff) | |
download | nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.gz nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.bz2 nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.lz nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.xz nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.zst nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.zip |
add is{GNU,Clang} attrs to cc-wrapper.
These will be more pleasant to use than the existing (cc.cc.isClang or false) nonsense we currently do.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/cc-wrapper/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index f6826c837ca..c8af548a2ca 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -10,6 +10,7 @@ , zlib ? null, extraPackages ? [] , dyld ? null # TODO: should this be a setup-hook on dyld? , setupHook ? ./setup-hook.sh +, isGNU ? false, isClang ? false }: with stdenv.lib; @@ -41,7 +42,7 @@ stdenv.mkDerivation { # The wrapper scripts use 'cat', so we may need coreutils. coreutils = if nativeTools then null else coreutils; - passthru = { inherit nativeTools nativeLibc nativePrefix; }; + passthru = { inherit nativeTools nativeLibc nativePrefix isGNU isClang; }; buildCommand = '' |