1 { lib, stdenv, fetchurl }:
7 url = "ftp://hpux.connect.org.uk/hpux/Users/replace-2.24/replace-2.24-src-11.11.tar.gz";
8 sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
11 outputs = [ "out" "man" ];
13 makeFlags = [ "TREE=\$(out)" "MANTREE=\$(TREE)/share/man" ];
16 sed -e "s@/bin/mv@$(type -P mv)@" -i replace.h
19 preInstall = "mkdir -p \$out/share/man";
20 postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
22 patches = [./malloc.patch];
25 homepage = "https://replace.richardlloyd.org.uk/";
26 description = "A tool to replace verbatim strings";
27 platforms = lib.platforms.unix;