* substitute() in stdenv: use the replace program instead of awful

sed hackery.
* Some indentation fixes in setup.sh.

svn path=/nixpkgs/branches/stdenv-updates/; revision=10658
This commit is contained in:
Eelco Dolstra
2008-02-13 14:23:09 +00:00
parent 3db3e079af
commit 5f45fb3ae9
11 changed files with 66 additions and 158 deletions
+4 -7
View File
@@ -1,4 +1,5 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "replace-2.24";
@@ -7,14 +8,10 @@ stdenv.mkDerivation {
sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
};
buildInputs = [];
makeFlags = " TREE=\$(out) ";
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
makeFlags = "TREE=\$(out)";
meta = {
description = "
Replace verbatim strings. Sed is not fit to do it. Replace is.
";
homepage = http://replace.richardlloyd.org.uk/;
description = "A tool to replace verbatim strings";
};
}