Merge branch 'master' into closure-size
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
, aclSupport ? false, acl ? null
|
||||
, selinuxSupport? false, libselinux ? null, libsepol ? null
|
||||
, autoconf, automake114x, texinfo
|
||||
, withPrefix ? false
|
||||
}:
|
||||
|
||||
assert aclSupport -> acl != null;
|
||||
@@ -39,6 +40,8 @@ let
|
||||
outputs = [ "out" "info" ];
|
||||
|
||||
nativeBuildInputs = [ perl xz.bin ];
|
||||
configureFlags = optionalString stdenv.isSunOS "ac_cv_func_inotify_init=no";
|
||||
|
||||
buildInputs = [ gmp ]
|
||||
++ optional aclSupport acl
|
||||
++ optionals stdenv.isCygwin [ autoconf automake114x texinfo ] # due to patch
|
||||
@@ -82,9 +85,21 @@ let
|
||||
enableParallelBuilding = false;
|
||||
|
||||
NIX_LDFLAGS = optionalString selinuxSupport "-lsepol";
|
||||
FORCE_UNSAFE_CONFIGURE = stdenv.lib.optionalString (stdenv.system == "armv7l-linux" || stdenv.isSunOS) "1";
|
||||
|
||||
makeFlags = optionalString stdenv.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0";
|
||||
|
||||
# e.g. ls -> gls; grep -> ggrep
|
||||
postFixup = # feel free to simplify on a mass rebuild
|
||||
if withPrefix then
|
||||
''
|
||||
(
|
||||
cd "$out/bin"
|
||||
find * -type f -executable -exec mv {} g{} \;
|
||||
)
|
||||
''
|
||||
else null;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.gnu.org/software/coreutils/;
|
||||
description = "The basic file, shell and text manipulation utilities of the GNU operating system";
|
||||
@@ -105,6 +120,3 @@ let
|
||||
};
|
||||
in
|
||||
self
|
||||
// stdenv.lib.optionalAttrs (stdenv.system == "armv7l-linux" || stdenv.isSunOS) {
|
||||
FORCE_UNSAFE_CONFIGURE = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user