Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 updateAutotoolsGnuConfigScriptsHook, 6 perl, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "gnused"; 11 version = "4.9"; 12 13 src = fetchurl { 14 url = "mirror://gnu/sed/sed-${version}.tar.xz"; 15 sha256 = "sha256-biJrcy4c1zlGStaGK9Ghq6QteYKSLaelNRljHSSXUYE="; 16 }; 17 18 outputs = [ 19 "out" 20 "info" 21 ]; 22 23 nativeBuildInputs = [ 24 updateAutotoolsGnuConfigScriptsHook 25 perl 26 ]; 27 preConfigure = "patchShebangs ./build-aux/help2man"; 28 29 # Prevents attempts of running 'help2man' on cross-built binaries. 30 PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing"; 31 32 meta = { 33 homepage = "https://www.gnu.org/software/sed/"; 34 description = "GNU sed, a batch stream editor"; 35 36 longDescription = '' 37 Sed (stream editor) isn't really a true text editor or text 38 processor. Instead, it is used to filter text, i.e., it takes 39 text input and performs some operation (or set of operations) on 40 it and outputs the modified text. Sed is typically used for 41 extracting part of a file using pattern matching or substituting 42 multiple occurrences of a string within a file. 43 ''; 44 45 license = lib.licenses.gpl3Plus; 46 47 platforms = lib.platforms.unix; 48 maintainers = with lib.maintainers; [ mic92 ]; 49 mainProgram = "sed"; 50 }; 51}