3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.menhir: remove unnecessary substitution

This commit is contained in:
Robin Gloster 2016-08-29 01:28:15 +00:00
parent 675848419e
commit a2dd51e6a2
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -13,16 +13,14 @@ stdenv.mkDerivation {
createFindlibDestdir = true;
preBuild = ''
#Fix makefiles.
# fix makefiles.
RM=$(type -p rm)
CHMOD=$(type -p chmod)
ENV=$(type -p env)
for f in src/Makefile demos/OMakefile* demos/Makefile* demos/ocamldep.wrapper
for f in src/Makefile demos/OMakefile* demos/Makefile*
do
substituteInPlace $f \
--replace /bin/rm $RM \
--replace /bin/chmod $CHMOD \
--replace /usr/bin/env $ENV
--replace /bin/chmod $CHMOD
done
export PREFIX=$out