From d22a3b8d0ea0911a07ec5f8cbb2b064ecb06f4a5 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 18 Sep 2014 16:07:03 +0400 Subject: [PATCH] Fix /bin/mv reference in replace-literal --- pkgs/tools/text/replace/default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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";