2007-07-15 13:59:33 +02:00
|
|
|
{stdenv, fetchurl}:
|
2008-02-13 15:23:09 +01:00
|
|
|
|
2008-02-22 19:19:04 +01:00
|
|
|
stdenv.mkDerivation {
|
2007-07-15 13:59:33 +02:00
|
|
|
name = "replace-2.24";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://hpux.connect.org.uk/hpux/Users/replace-2.24/replace-2.24-src-11.11.tar.gz;
|
|
|
|
sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
|
|
|
|
};
|
|
|
|
|
2010-12-06 18:43:57 +01:00
|
|
|
makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man";
|
2007-09-27 16:48:09 +02:00
|
|
|
|
2010-04-04 20:10:42 +02:00
|
|
|
crossAttrs = {
|
2010-12-06 18:43:57 +01:00
|
|
|
makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man CC=${stdenv.cross.config}-gcc";
|
2010-04-04 20:10:42 +02:00
|
|
|
};
|
|
|
|
|
2014-09-18 14:07:03 +02:00
|
|
|
preBuild = ''
|
|
|
|
sed -e "s@/bin/mv@$(type -P mv)@" -i replace.h
|
|
|
|
'';
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
preInstall = "mkdir -p \$out/share/man";
|
2008-02-15 12:14:40 +01:00
|
|
|
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
|
|
|
|
|
2008-02-22 19:19:04 +01:00
|
|
|
patches = [./malloc.patch];
|
|
|
|
|
2007-07-15 13:59:33 +02:00
|
|
|
meta = {
|
2008-02-13 15:23:09 +01:00
|
|
|
homepage = http://replace.richardlloyd.org.uk/;
|
|
|
|
description = "A tool to replace verbatim strings";
|
2007-07-15 13:59:33 +02:00
|
|
|
};
|
2008-02-22 19:19:04 +01:00
|
|
|
}
|