mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03: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
|
, aclSupport ? false, acl ? null
|
||||||
, selinuxSupport? false, libselinux ? null, libsepol ? null
|
, selinuxSupport? false, libselinux ? null, libsepol ? null
|
||||||
, autoconf, automake114x, texinfo
|
, autoconf, automake114x, texinfo
|
||||||
|
, withPrefix ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert aclSupport -> acl != null;
|
assert aclSupport -> acl != null;
|
||||||
@ -83,6 +84,17 @@ let
|
|||||||
|
|
||||||
makeFlags = optionalString stdenv.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0";
|
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 = {
|
meta = {
|
||||||
homepage = http://www.gnu.org/software/coreutils/;
|
homepage = http://www.gnu.org/software/coreutils/;
|
||||||
description = "The basic file, shell and text manipulation utilities of the GNU operating system";
|
description = "The basic file, shell and text manipulation utilities of the GNU operating system";
|
||||||
|
@ -1151,6 +1151,8 @@ let
|
|||||||
aclSupport = stdenv.isLinux;
|
aclSupport = stdenv.isLinux;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
coreutils-prefixed = coreutils.override { withPrefix = true; };
|
||||||
|
|
||||||
cpio = callPackage ../tools/archivers/cpio { };
|
cpio = callPackage ../tools/archivers/cpio { };
|
||||||
|
|
||||||
crackxls = callPackage ../tools/security/crackxls { };
|
crackxls = callPackage ../tools/security/crackxls { };
|
||||||
|
Loading…
Reference in New Issue
Block a user