nixpkgs/pkgs/tools/text/replace/default.nix
Lluís Batlle i Rossell 19b9811012 Making a bunch of basic programs cross-buildable.
After this, the 'bootstrap-tools' can be cross-built.


svn path=/nixpkgs/branches/stdenv-updates/; revision=20945
2010-04-04 18:10:42 +00:00

26 lines
602 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
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";
};
makeFlags = ["TREE=\$(out)"];
crossAttrs = {
makeFlags = [ "TREE=\$(out)" "CC=${stdenv.cross.config}-gcc" ];
};
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
patches = [./malloc.patch];
meta = {
homepage = http://replace.richardlloyd.org.uk/;
description = "A tool to replace verbatim strings";
};
}