Fix /bin/mv reference in replace-literal

This commit is contained in:
Michael Raskin 2014-09-18 16:07:03 +04:00
parent d9716fb642
commit d22a3b8d0e

View file

@ -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";