Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 replaceVars, 6 PodParser, 7}: 8 9stdenv.mkDerivation { 10 pname = "multiline"; 11 version = "0.6.4"; 12 13 src = fetchurl { 14 url = "https://raw.githubusercontent.com/weechat/scripts/5f073d966e98d54344a91be4f5afc0ec9e2697dc/perl/multiline.pl"; 15 sha256 = "sha256-TXbU2Q7Tm8iTwOQqrWpqHXuKrjoBFLyUWRsH+TsR9Lo="; 16 }; 17 18 dontUnpack = true; 19 prePatch = '' 20 cp $src multiline.pl 21 ''; 22 23 patches = [ 24 # The script requires a special Perl environment. 25 (replaceVars ./libpath.patch { 26 env = PodParser; 27 }) 28 ]; 29 30 passthru.scripts = [ "multiline.pl" ]; 31 32 installPhase = '' 33 runHook preInstall 34 35 install -D multiline.pl $out/share/multiline.pl 36 37 runHook postInstall 38 ''; 39 40 meta = with lib; { 41 description = "Multi-line edit box"; 42 license = licenses.gpl3Plus; 43 maintainers = with maintainers; [ oxzi ]; 44 }; 45}