diff options
author | Evgeny Egorochkin <phreedom.stdin@gmail.com> | 2011-03-27 04:46:25 +0000 |
---|---|---|
committer | Evgeny Egorochkin <phreedom.stdin@gmail.com> | 2011-03-27 04:46:25 +0000 |
commit | ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e (patch) | |
tree | 6bf8841d44bd7ed4fe62c40e80c3d9e393dfdba8 /pkgs/tools/misc/coreutils | |
parent | 1c9c082d00fd784137ff9448ae9e4e5cdcfab706 (diff) | |
download | nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.tar nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.tar.gz nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.tar.bz2 nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.tar.lz nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.tar.xz nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.tar.zst nixlib-ac951a6469d3cbf7acd0a43e5bc19bbb91e9093e.zip |
coreutils: add SELinux support
svn path=/nixpkgs/trunk/; revision=26543
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 21ce92150176..c4295e7b47a8 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.7"; 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 { } ) ) + |