df4ec23bc7
Upstream announcement: https://lists.gnu.org/archive/html/info-gnu/2020-01/msg00002.html For the lazy: > * Noteworthy changes in release 4.8 (2020-01-14) [stable] > > ** Bug fixes > > "sed -i" now creates temporary files with correct umask (limited to u=rwx). > Previously sed would incorrectly set umask on temporary files, resulting > in problems under certain fuse-like file systems. > [bug introduced in sed 4.2.1] > > ** Release > > distribute gzip-compressed tarballs once again > > ** Improvements > > a year's worth of gnulib development, including improved DFA performance Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, perl }:
|
|
|
|
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.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ ];
|
|
};
|
|
}
|