e00c61fd36
Fixes: ```` GEN doc/sed.1 help2man: can't get `--help' info from sed/sed make[2]: *** [Makefile:5775: doc/sed.1] Error 126 make[2]: Leaving directory '/tmp/nix-build-gnused-4.3-arm-linux-gnueabihf.drv-0/sed-4.3' make[1]: *** [Makefile:3024: all-recursive] Error 1 make[1]: Leaving directory '/tmp/nix-build-gnused-4.3-arm-linux-gnueabihf.drv-0/sed-4.3' make: *** [Makefile:2156: all] Error 2 ```` http://hydra.nixos.org/build/46051086/nixlog/11/raw
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnused-${version}";
|
|
version = "4.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/sed/sed-${version}.tar.xz";
|
|
sha256 = "1anhdgah8h423hlmn9hwzxzr7hjbqjm6hxq3z1p7p7nf8640vhj7";
|
|
};
|
|
|
|
outputs = [ "out" "info" ];
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
preConfigure = "patchShebangs ./build-aux/help2man";
|
|
|
|
crossAttrs = {
|
|
# The tarball ships with a fine prebuilt manpage, but the make rules try to rebuild it,
|
|
# which won't work when cross compiling as help2man needs to execute the binaries.
|
|
postConfigure = ''
|
|
sed -i Makefile -e 's|doc/sed\.1:|dummy:|'
|
|
'';
|
|
};
|
|
|
|
meta = {
|
|
homepage = http://www.gnu.org/software/sed/;
|
|
description = "GNU sed, a batch stream editor";
|
|
|
|
longDescription = ''
|
|
Sed (stream editor) isn't really a true text editor or text
|
|
processor. Instead, it is used to filter text, i.e., it takes
|
|
text input and performs some operation (or set of operations) on
|
|
it and outputs the modified text. Sed is typically used for
|
|
extracting part of a file using pattern matching or substituting
|
|
multiple occurrences of a string within a file.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|