summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-12-27 12:09:05 +0000
committerGitHub <noreply@github.com>2021-12-27 12:09:05 +0000
commit750e61beb55fc51fa1cb2a5551a7d723fd109e72 (patch)
treefff10be0382963c094775260af5ff15ca87693e8 /pkgs/tools/text
parent313619a32cc191fbfa9ada4dbe9ed9b3e39e11e8 (diff)
parent5f6a771d30bde115672b75552f0c2f0d1c80b0a5 (diff)
downloadnixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.tar
nixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.tar.gz
nixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.tar.bz2
nixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.tar.lz
nixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.tar.xz
nixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.tar.zst
nixpkgs-750e61beb55fc51fa1cb2a5551a7d723fd109e72.zip
Merge pull request #151295 from Mic92/cross-compile-fixes
{pipewire,replace}: fix cross compile 
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/replace/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/text/replace/default.nix b/pkgs/tools/text/replace/default.nix
index a0873d1c8d2..058c2ba3daa 100644
--- a/pkgs/tools/text/replace/default.nix
+++ b/pkgs/tools/text/replace/default.nix
@@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "man" ];
 
-  makeFlags = [ "TREE=\$(out)" "MANTREE=\$(TREE)/share/man" ];
+  makeFlags = [
+    "TREE=\$(out)"
+    "MANTREE=\$(TREE)/share/man"
+    "CC=${stdenv.cc.targetPrefix}cc"
+  ];
 
   preBuild = ''
     sed -e "s@/bin/mv@$(type -P mv)@" -i replace.h