stdenv: Add `isGlibc' function.

This commit is contained in:
Ludovic Courtès 2012-08-21 15:29:07 +02:00
parent 606e6acd6f
commit 6adc5cedae

View File

@ -30,7 +30,7 @@ let
lib.filter lib.isDerivation initialPath; lib.filter lib.isDerivation initialPath;
} }
// { // rec {
meta = { meta = {
description = "The default build environment for Unix packages in Nixpkgs"; description = "The default build environment for Unix packages in Nixpkgs";
@ -96,6 +96,9 @@ let
|| result.system == "armv7l-linux" || result.system == "armv7l-linux"
|| result.system == "mips64el-linux"; || result.system == "mips64el-linux";
isGNU = result.system == "i686-gnu"; # GNU/Hurd isGNU = result.system == "i686-gnu"; # GNU/Hurd
isGlibc = isGNU # useful for `stdenvNative'
|| isLinux
|| result.system = "x86_64-kfreebsd-gnu";
isSunOS = result.system == "i686-solaris" isSunOS = result.system == "i686-solaris"
|| result.system == "x86_64-solaris"; || result.system == "x86_64-solaris";
isCygwin = result.system == "i686-cygwin"; isCygwin = result.system == "i686-cygwin";