diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/javalib/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/javalib/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/javalib/default.nix b/pkgs/development/ocaml-modules/javalib/default.nix index 2fa72dcf07f..7272e668aa2 100644 --- a/pkgs/development/ocaml-modules/javalib/default.nix +++ b/pkgs/development/ocaml-modules/javalib/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, which, ocaml, findlib, camlzip, extlib}: +{stdenv, fetchurl, which, ocaml, findlib, camlzip, extlib, camlp4}: let pname = "javalib"; version = "2.3"; @@ -14,12 +14,14 @@ stdenv.mkDerivation rec { sha256 = "1i8djcanzm250mwilm3jfy37cz0k0x7jbnrz8a5vvdi91kyzh52j"; }; - buildInputs = [ which ocaml findlib camlzip extlib ]; + buildInputs = [ which ocaml findlib camlp4 ]; patches = [ ./configure.sh.patch ./Makefile.config.example.patch ]; createFindlibDestdir = true; + preConfigure = "patchShebangs ./configure.sh"; + configureScript = "./configure.sh"; dontAddPrefix = "true"; @@ -31,10 +33,11 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ camlzip extlib ]; - meta = { + meta = with stdenv.lib; { description = "A library that parses Java .class files into OCaml data structures"; homepage = "${webpage}"; - license = stdenv.lib.licenses.lgpl3; + license = licenses.lgpl3; + maintainers = [ maintainers.vbgl ]; platforms = ocaml.meta.platforms; }; } |