diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2021-12-19 11:07:33 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2021-12-19 11:08:04 +0000 |
commit | 5f6a771d30bde115672b75552f0c2f0d1c80b0a5 (patch) | |
tree | 57f47d8e53af066771e4b035f6f63107f60050bd /pkgs/tools/text/replace | |
parent | a81a917e67fac37c9e5f0587233d9b814009edc4 (diff) |
replace: fix cross compilation
Diffstat (limited to 'pkgs/tools/text/replace')
-rw-r--r-- | pkgs/tools/text/replace/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/text/replace/default.nix b/pkgs/tools/text/replace/default.nix index a0873d1c8d2b..058c2ba3daa5 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 |