81b785ceae
https://savannah.gnu.org/forum/forum.php?forum_id=9331 Mirrors didn't seem to have it, hash obtained via $ nix-prefetch-url https://ftp.gnu.org/gnu/sed/sed-4.6.tar.xz
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnused-${version}";
|
|
version = "4.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/sed/sed-${version}.tar.xz";
|
|
sha256 = "17mv15mmjbqmfp6x600ypp9jyvkh9sk47l8l4xrcqf3q3k7nmzxy";
|
|
};
|
|
|
|
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.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ ];
|
|
};
|
|
}
|