diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-09-23 13:30:04 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-09-23 13:30:04 +0000 |
commit | 4fafee1555261aa771cc2156a73d8b2bbc183f6c (patch) | |
tree | 677b1ef25727450c8fc64fa2c488f78fe5cef272 /pkgs/stdenv/native | |
parent | d874ec17a482163e26d6d610561487b42fc75c4b (diff) |
Added initial OpenBSD support to the stdenv
svn path=/nixpkgs/trunk/; revision=17362
Diffstat (limited to 'pkgs/stdenv/native')
-rw-r--r-- | pkgs/stdenv/native/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix index 248cc2a3357c5..72ce8e2729991 100644 --- a/pkgs/stdenv/native/default.nix +++ b/pkgs/stdenv/native/default.nix @@ -33,6 +33,18 @@ rec { export NIX_GCC_NEEDS_GREP=1 ''; + prehookOpenBSD = builtins.toFile "prehook-openbsd.sh" '' + source ${prehookBase} + + alias make=gmake + alias grep=ggrep + export MAKE=gmake + shopt -s expand_aliases + + # Filter out stupid GCC warnings (in gcc-wrapper). + export NIX_GCC_NEEDS_GREP=1 + ''; + prehookCygwin = builtins.toFile "prehook-cygwin.sh" '' source ${prehookBase} @@ -55,6 +67,7 @@ rec { preHook = if system == "i686-darwin" || system == "powerpc-darwin" then prehookDarwin else if system == "i686-freebsd" then prehookFreeBSD else + if system == "i686-openbsd" then prehookOpenBSD else prehookBase; initialPath = extraPath ++ path; |