From c2f53451722811dafb841f3d189ce4ce80e6cd35 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Tue, 29 Aug 2006 13:45:21 +0000 Subject: [PATCH] add attribute isLinux. Nice for packages we only want to build on linux, but on different platforms (currently i686-linux and powerpc-linux) svn path=/nixpkgs/trunk/; revision=6306 --- pkgs/stdenv/generic/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 52498e77ee7..548b6c8c63c 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -51,6 +51,7 @@ let { # Utility value: is this a Darwin system? isDarwin = result.system == "i686-darwin" || result.system == "powerpc-darwin"; + isLinux = result.system == "i686-linux" || result.system == "powerpc-linux"; # Utility function: allow stdenv to be easily regenerated with # a different setup script. (See all-packages.nix for an