pkgs/stdenv/generic: added stdenv attributes isFreeBSD, isOpenBSD, and isBSD

svn path=/nixpkgs/trunk/; revision=23360
This commit is contained in:
Peter Simons 2010-08-23 14:39:46 +00:00
parent f79f257c88
commit eb9c20eaf3

View file

@ -97,6 +97,14 @@ let
|| result.system == "armv5tel-linux";
isSunOS = result.system == "i386-sunos";
isCygwin = result.system == "i686-cygwin";
isFreeBSD = result.system == "i686-freebsd"
|| result.system == "x86_64-freebsd";
isOpenBSD = result.system == "i686-openbsd"
|| result.system == "x86_64-openbsd";
isBSD = result.system == "i686-freebsd"
|| result.system == "x86_64-freebsd"
|| result.system == "i686-openbsd"
|| result.system == "x86_64-openbsd";
isi686 = result.system == "i686-linux"
|| result.system == "i686-darwin"
|| result.system == "i686-freebsd"