diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-07-14 22:34:24 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-07-14 22:34:24 +0000 |
commit | 3defd9a3d3011be9be039519f7b32176365e2baa (patch) | |
tree | f995651779a166c05873aec20d4a2eda5198c456 /pkgs/stdenv/generic | |
parent | 4ac32aa6398ae5de1eedd426c935c4e6ff1a2588 (diff) | |
download | nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.tar nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.tar.gz nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.tar.bz2 nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.tar.lz nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.tar.xz nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.tar.zst nixlib-3defd9a3d3011be9be039519f7b32176365e2baa.zip |
* On Darwin, use Apple's gcc fork.
svn path=/nixpkgs/trunk/; revision=5715
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r-- | pkgs/stdenv/generic/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 90770e9dddc0..88f0b352ea09 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -22,10 +22,10 @@ let { inherit param1 param2 param3 param4 param5; } - # Add a utility function to produce derivations that use this - # stdenv and its shell. // { + # Add a utility function to produce derivations that use this + # stdenv and its shell. mkDerivation = attrs: (derivation ( (removeAttrs attrs ["meta"]) @@ -46,6 +46,9 @@ let { # queries. { meta = if attrs ? meta then attrs.meta else {}; }; + # Utility value: is this a Darwin system? + isDarwin = body.system == "i686-darwin" || body.system == "powerpc-darwin"; + } # Propagate any extra attributes. For instance, we use this to |