diff options
Diffstat (limited to 'pkgs/development/tools/ocaml/camlp5/default.nix')
| -rw-r--r-- | pkgs/development/tools/ocaml/camlp5/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/tools/ocaml/camlp5/default.nix b/pkgs/development/tools/ocaml/camlp5/default.nix index bb44bbc8d6ee..3e37de9bd100 100644 --- a/pkgs/development/tools/ocaml/camlp5/default.nix +++ b/pkgs/development/tools/ocaml/camlp5/default.nix @@ -1,7 +1,6 @@ {stdenv, fetchurl, ocaml, transitional ? false}: let - ocaml_version = (builtins.parseDrvName ocaml.name).version; metafile = ./META; in @@ -19,11 +18,11 @@ stdenv.mkDerivation { prefixKey = "-prefix "; preConfigure = "configureFlagsArray=(" + (if transitional then "--transitional" else "--strict") + - " --libdir $out/lib/ocaml/${ocaml_version}/site-lib)"; + " --libdir $out/lib/ocaml/${ocaml.version}/site-lib)"; buildFlags = "world.opt"; - postInstall = "cp ${metafile} $out/lib/ocaml/${ocaml_version}/site-lib/camlp5/META"; + postInstall = "cp ${metafile} $out/lib/ocaml/${ocaml.version}/site-lib/camlp5/META"; meta = with stdenv.lib; { description = "Preprocessor-pretty-printer for OCaml"; |
