2017-06-28 21:57:08 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2008-02-13 14:23:09 +00:00
|
|
|
|
2008-02-22 18:19:04 +00:00
|
|
|
stdenv.mkDerivation {
|
2007-07-15 12:59:33 +01:00
|
|
|
name = "replace-2.24";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "ftp://hpux.connect.org.uk/hpux/Users/replace-2.24/replace-2.24-src-11.11.tar.gz";
|
2007-07-15 12:59:33 +01:00
|
|
|
sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
|
|
|
|
};
|
|
|
|
|
2018-02-19 18:52:08 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "TREE=\$(out)" "MANTREE=\$(TREE)/share/man" ];
|
2007-09-27 15:48:09 +01:00
|
|
|
|
2014-09-18 13:07:03 +01:00
|
|
|
preBuild = ''
|
|
|
|
sed -e "s@/bin/mv@$(type -P mv)@" -i replace.h
|
|
|
|
'';
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
preInstall = "mkdir -p \$out/share/man";
|
2008-02-15 11:14:40 +00:00
|
|
|
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
|
|
|
|
|
2008-02-22 18:19:04 +00:00
|
|
|
patches = [./malloc.patch];
|
|
|
|
|
2007-07-15 12:59:33 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://replace.richardlloyd.org.uk/";
|
2008-02-13 14:23:09 +00:00
|
|
|
description = "A tool to replace verbatim strings";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2007-07-15 12:59:33 +01:00
|
|
|
};
|
2008-02-22 18:19:04 +00:00
|
|
|
}
|