2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnused";
|
|
|
|
version = "4.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/sed/sed-${version}.tar.xz";
|
|
|
|
sha256 = "0cznxw73fzv1n3nj2zsq6nf73rvsbxndp444xkpahdqvlzz0r6zp";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "info" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
preConfigure = "patchShebangs ./build-aux/help2man";
|
|
|
|
|
|
|
|
# Prevents attempts of running 'help2man' on cross-built binaries.
|
|
|
|
PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|