diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2014-09-18 16:07:03 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-09-20 11:53:21 +0400 |
commit | d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5 (patch) | |
tree | a442ab769fbcadf51a4c48979b57e9e245a5b4e7 /pkgs/tools | |
parent | d9716fb64285e0c1a01eb7179c4a8d13da39e853 (diff) |
Fix /bin/mv reference in replace-literal
Diffstat (limited to 'pkgs/tools')
-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 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"; |