about summary refs log tree commit diff
path: root/pkgs/tools/text/replace
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-04-04 18:10:42 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-04-04 18:10:42 +0000
commit19b98110126fde7cbb1127af7e3fe1568eacad3d (patch)
treea32e49d08765b5d8ff0b5b7eaae87ae3907e1542 /pkgs/tools/text/replace
parent2d261d1c1ed28e396ec0305075ccffb25b416abc (diff)
downloadnixlib-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.nix4
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];