diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-09-30 15:19:25 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-09-30 15:19:25 +0000 |
commit | 068b2158f54c8773a42d48e465fa5a5fab1083a4 (patch) | |
tree | 31697825f88a1ec90f83e23c548c2f4d53977720 /pkgs/stdenv | |
parent | de014f5bb3c69f2df6f6c94cc571ec6311486748 (diff) |
Added Solaris support to the stdenv
svn path=/nixpkgs/trunk/; revision=17559
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/default.nix | 3 | ||||
-rw-r--r-- | pkgs/stdenv/native/default.nix | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 15f69c14f0dc9..6513c9be7e7ba 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -75,7 +75,8 @@ let isi686 = result.system == "i686-linux" || result.system == "i686-darwin" || result.system == "i686-freebsd" - || result.system == "i686-openbsd"; + || result.system == "i686-openbsd" + || result.system == "i386-sunos"; is64bit = result.system == "x86_64-linux"; # Utility function: allow stdenv to be easily regenerated with diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix index cc76a88db70f2..0cbfb07eb74f0 100644 --- a/pkgs/stdenv/native/default.nix +++ b/pkgs/stdenv/native/default.nix @@ -4,8 +4,8 @@ rec { shell = "/bin/bash"; - path = ["/" "/usr" "/usr/local"]; - + path = (if system == "i386-sunos" then [ "/usr/gnu" ] else []) ++ + ["/" "/usr" "/usr/local"]; prehookBase = builtins.toFile "prehook-base.sh" '' # Disable purity tests; it's allowed (even needed) to link to @@ -91,7 +91,7 @@ rec { name = "gcc-native"; nativeTools = true; nativeLibc = true; - nativePrefix = "/usr"; + nativePrefix = if system == "i386-sunos" then "/usr/gnu" else "/usr"; stdenv = stdenvBoot0; }; |