mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
Add coreutils-prefixed to install coreutils as gls, ggrep, etc.
Close #11421. Amended by vcunat not to cause a stdenv rebuild.
This commit is contained in:
parent
dc6b4e7fdd
commit
211c9ab28b
@ -2,6 +2,7 @@
|
||||
, aclSupport ? false, acl ? null
|
||||
, selinuxSupport? false, libselinux ? null, libsepol ? null
|
||||
, autoconf, automake114x, texinfo
|
||||
, withPrefix ? false
|
||||
}:
|
||||
|
||||
assert aclSupport -> acl != null;
|
||||
@ -83,6 +84,17 @@ let
|
||||
|
||||
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";
|
||||
|
@ -1151,6 +1151,8 @@ let
|
||||
aclSupport = stdenv.isLinux;
|
||||
};
|
||||
|
||||
coreutils-prefixed = coreutils.override { withPrefix = true; };
|
||||
|
||||
cpio = callPackage ../tools/archivers/cpio { };
|
||||
|
||||
crackxls = callPackage ../tools/security/crackxls { };
|
||||
|
Loading…
Reference in New Issue
Block a user