diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-04-04 18:10:42 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-04-04 18:10:42 +0000 |
commit | 19b98110126fde7cbb1127af7e3fe1568eacad3d (patch) | |
tree | a32e49d08765b5d8ff0b5b7eaae87ae3907e1542 /pkgs/tools/text/replace | |
parent | 2d261d1c1ed28e396ec0305075ccffb25b416abc (diff) | |
download | nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.tar nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.tar.gz nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.tar.bz2 nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.tar.lz nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.tar.xz nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.tar.zst nixlib-19b98110126fde7cbb1127af7e3fe1568eacad3d.zip |
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
Diffstat (limited to 'pkgs/tools/text/replace')
-rw-r--r-- | pkgs/tools/text/replace/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/text/replace/default.nix b/pkgs/tools/text/replace/default.nix index 0182a3bb48df..339bf510c4b2 100644 --- a/pkgs/tools/text/replace/default.nix +++ b/pkgs/tools/text/replace/default.nix @@ -10,6 +10,10 @@ stdenv.mkDerivation { makeFlags = ["TREE=\$(out)"]; + crossAttrs = { + makeFlags = [ "TREE=\$(out)" "CC=${stdenv.cross.config}-gcc" ]; + }; + postInstall = "mv \$out/bin/replace \$out/bin/replace-literal"; patches = [./malloc.patch]; |