* Predicate `isi686'.

svn path=/nixpkgs/trunk/; revision=8721
This commit is contained in:
Eelco Dolstra 2007-05-20 20:25:06 +00:00
parent 14c0ae4055
commit 9e960a4fb6

View file

@ -52,11 +52,14 @@ let {
//
(if attrs ? passthru then attrs.passthru else {});
# Utility value: is this a Darwin system?
# Utility flags to test the type of platform.
isDarwin = result.system == "i686-darwin" || result.system == "powerpc-darwin";
isLinux = result.system == "i686-linux"
|| result.system == "x86_64-linux"
|| result.system == "powerpc-linux";
isi686 = result.system == "i686-linux"
|| result.system == "i686-darwin"
|| result.system == "i686-freebsd";
# Utility function: allow stdenv to be easily regenerated with
# a different setup script. (See all-packages.nix for an