2007-07-15 04:59:33 -07:00
|
|
|
{stdenv, fetchurl}:
|
2008-02-13 06:23:09 -08:00
|
|
|
|
2008-02-22 10:19:04 -08:00
|
|
|
stdenv.mkDerivation {
|
2007-07-15 04:59:33 -07: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";
|
|
|
|
};
|
|
|
|
|
2008-08-25 03:00:17 -07:00
|
|
|
makeFlags = ["TREE=\$(out)"];
|
2007-09-27 07:48:09 -07:00
|
|
|
|
2010-04-04 11:10:42 -07:00
|
|
|
crossAttrs = {
|
|
|
|
makeFlags = [ "TREE=\$(out)" "CC=${stdenv.cross.config}-gcc" ];
|
|
|
|
};
|
|
|
|
|
2008-02-15 03:14:40 -08:00
|
|
|
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
|
|
|
|
|
2008-02-22 10:19:04 -08:00
|
|
|
patches = [./malloc.patch];
|
|
|
|
|
2007-07-15 04:59:33 -07:00
|
|
|
meta = {
|
2008-02-13 06:23:09 -08:00
|
|
|
homepage = http://replace.richardlloyd.org.uk/;
|
|
|
|
description = "A tool to replace verbatim strings";
|
2007-07-15 04:59:33 -07:00
|
|
|
};
|
2008-02-22 10:19:04 -08:00
|
|
|
}
|