summary refs log tree commit diff
path: root/pkgs/tools/text/replace
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-09-18 16:07:03 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-09-20 11:53:21 +0400
commitd22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5 (patch)
treea442ab769fbcadf51a4c48979b57e9e245a5b4e7 /pkgs/tools/text/replace
parentd9716fb64285e0c1a01eb7179c4a8d13da39e853 (diff)
downloadnixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.tar
nixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.tar.gz
nixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.tar.bz2
nixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.tar.lz
nixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.tar.xz
nixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.tar.zst
nixlib-d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5.zip
Fix /bin/mv reference in replace-literal
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 72dbdbf647f5..d6d1090652ad 100644
--- a/pkgs/tools/text/replace/default.nix
+++ b/pkgs/tools/text/replace/default.nix
@@ -14,6 +14,10 @@ stdenv.mkDerivation {
     makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man CC=${stdenv.cross.config}-gcc";
   };
 
+  preBuild = ''
+    sed -e "s@/bin/mv@$(type -P mv)@" -i replace.h
+  '';
+
   preInstall = "mkdir -p \$out/share/man";
   postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";