1 { lib, stdenv, fetchurl, updateAutotoolsGnuConfigScriptsHook, perl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/sed/sed-${version}.tar.xz";
9 sha256 = "sha256-biJrcy4c1zlGStaGK9Ghq6QteYKSLaelNRljHSSXUYE=";
12 outputs = [ "out" "info" ];
14 nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook perl ];
15 preConfigure = "patchShebangs ./build-aux/help2man";
17 # Prevents attempts of running 'help2man' on cross-built binaries.
18 PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing";
21 homepage = "https://www.gnu.org/software/sed/";
22 description = "GNU sed, a batch stream editor";
25 Sed (stream editor) isn't really a true text editor or text
26 processor. Instead, it is used to filter text, i.e., it takes
27 text input and performs some operation (or set of operations) on
28 it and outputs the modified text. Sed is typically used for
29 extracting part of a file using pattern matching or substituting
30 multiple occurrences of a string within a file.
33 license = lib.licenses.gpl3Plus;
35 platforms = lib.platforms.unix;
36 maintainers = with lib.maintainers; [ mic92 ];