summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/menhir
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-08-29 01:28:15 +0000
committerRobin Gloster <mail@glob.in>2016-08-29 01:28:15 +0000
commita2dd51e6a2d57b07c49c9abc831ab4256ca1b96a (patch)
treef5f4d359aa08fd9503bfa2d4f9a9d6e0c571ed7b /pkgs/development/ocaml-modules/menhir
parent675848419e9ebead75a5ed114aff001ad893df27 (diff)
downloadnixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.tar
nixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.tar.gz
nixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.tar.bz2
nixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.tar.lz
nixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.tar.xz
nixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.tar.zst
nixpkgs-a2dd51e6a2d57b07c49c9abc831ab4256ca1b96a.zip
ocamlPackages.menhir: remove unnecessary substitution
Diffstat (limited to 'pkgs/development/ocaml-modules/menhir')
-rw-r--r--pkgs/development/ocaml-modules/menhir/generic.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/menhir/generic.nix b/pkgs/development/ocaml-modules/menhir/generic.nix
index 088c2db061b..c182d210049 100644
--- a/pkgs/development/ocaml-modules/menhir/generic.nix
+++ b/pkgs/development/ocaml-modules/menhir/generic.nix
@@ -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