Added initial OpenBSD support to the stdenv
svn path=/nixpkgs/trunk/; revision=17362
This commit is contained in:
parent
d874ec17a4
commit
4fafee1555
@ -74,7 +74,8 @@ let
|
|||||||
|| result.system == "powerpc-linux";
|
|| result.system == "powerpc-linux";
|
||||||
isi686 = result.system == "i686-linux"
|
isi686 = result.system == "i686-linux"
|
||||||
|| result.system == "i686-darwin"
|
|| result.system == "i686-darwin"
|
||||||
|| result.system == "i686-freebsd";
|
|| result.system == "i686-freebsd"
|
||||||
|
|| result.system == "i686-openbsd";
|
||||||
is64bit = result.system == "x86_64-linux";
|
is64bit = result.system == "x86_64-linux";
|
||||||
|
|
||||||
# Utility function: allow stdenv to be easily regenerated with
|
# Utility function: allow stdenv to be easily regenerated with
|
||||||
|
@ -33,6 +33,18 @@ rec {
|
|||||||
export NIX_GCC_NEEDS_GREP=1
|
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" ''
|
prehookCygwin = builtins.toFile "prehook-cygwin.sh" ''
|
||||||
source ${prehookBase}
|
source ${prehookBase}
|
||||||
|
|
||||||
@ -55,6 +67,7 @@ rec {
|
|||||||
preHook =
|
preHook =
|
||||||
if system == "i686-darwin" || system == "powerpc-darwin" then prehookDarwin else
|
if system == "i686-darwin" || system == "powerpc-darwin" then prehookDarwin else
|
||||||
if system == "i686-freebsd" then prehookFreeBSD else
|
if system == "i686-freebsd" then prehookFreeBSD else
|
||||||
|
if system == "i686-openbsd" then prehookOpenBSD else
|
||||||
prehookBase;
|
prehookBase;
|
||||||
|
|
||||||
initialPath = extraPath ++ path;
|
initialPath = extraPath ++ path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user