diff options
author | Shea Levy <shea@shealevy.com> | 2011-08-24 19:16:43 +0000 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2011-08-24 19:16:43 +0000 |
commit | 4d70ba6cc960555c9e1f701a88517e99232b2148 (patch) | |
tree | 7fc328746167a757526bf4165584e3bfb8a83b4f /pkgs/tools/misc/coreutils | |
parent | 5d62c65d6e085481a36c857e8b86f88d80b1c565 (diff) | |
parent | b58016b007444b25ab5256eb21896cd859038901 (diff) | |
download | nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.tar nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.tar.gz nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.tar.bz2 nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.tar.lz nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.tar.xz nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.tar.zst nixlib-4d70ba6cc960555c9e1f701a88517e99232b2148.zip |
Merge from trunk up through r28790
svn path=/nixpkgs/branches/stdenv-updates/; revision=28792
Diffstat (limited to 'pkgs/tools/misc/coreutils')
-rw-r--r-- | pkgs/tools/misc/coreutils/default.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 65d5cb6c8f9b..4db9df467219 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -1,8 +1,11 @@ -{ stdenv, fetchurl, aclSupport ? false, acl ? null, perl, gmp ? null}: +{ stdenv, fetchurl, perl, gmp ? null +, aclSupport ? false, acl ? null +, selinuxSupport? false, libselinux ? null, libsepol ? null }: assert aclSupport -> acl != null; +assert selinuxSupport -> ( (libselinux != null) && (libsepol != null) ); -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "coreutils-8.10"; src = fetchurl { @@ -11,11 +14,16 @@ stdenv.mkDerivation rec { }; buildNativeInputs = [ perl ]; - buildInputs = [ gmp ] ++ stdenv.lib.optional aclSupport acl; + buildInputs = [ gmp ] + ++ stdenv.lib.optional aclSupport acl + ++ stdenv.lib.optional selinuxSupport libselinux + ++ stdenv.lib.optional selinuxSupport libsepol; crossAttrs = { buildInputs = [ gmp ] ++ stdenv.lib.optional aclSupport acl.hostDrv + ++ stdenv.lib.optional selinuxSupport libselinux.hostDrv + ++ stdenv.lib.optional selinuxSupport libsepol.hostDrv ++ stdenv.lib.optional (stdenv.gccCross.libc ? libiconv) stdenv.gccCross.libc.libiconv.hostDrv; @@ -48,4 +56,5 @@ stdenv.mkDerivation rec { maintainers = [ stdenv.lib.maintainers.ludo ]; }; -} +} // (if selinuxSupport then { NIX_LDFLAGS = "-lsepol"; } else { } ) ) + |