From 9e960a4fb6d33e995127cf53e5d8d48eebe4e05b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 20 May 2007 20:25:06 +0000 Subject: [PATCH] * Predicate `isi686'. svn path=/nixpkgs/trunk/; revision=8721 --- pkgs/stdenv/generic/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 3c476d5c1ab..85d30808fcd 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -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