summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-07-14 22:34:24 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-07-14 22:34:24 +0000
commit3defd9a3d3011be9be039519f7b32176365e2baa (patch)
treef995651779a166c05873aec20d4a2eda5198c456 /pkgs/stdenv/generic
parent4ac32aa6398ae5de1eedd426c935c4e6ff1a2588 (diff)
downloadnixlib-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.nix7
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