1 { lib, stdenv, fetchFromGitHub, which, ocaml, findlib, javalib }:
8 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
9 "${pname} is not available for OCaml ${ocaml.version}"
13 pname = "ocaml${ocaml.version}-${pname}";
17 src = fetchFromGitHub {
18 owner = "javalib-team";
21 hash = "sha256-G1W8/G0TEcldnFnH/NAb9a6ZSGGP2fWTM47lI8bBHnw=";
24 nativeBuildInputs = [ which ocaml findlib ];
28 patches = [ ./configure.sh.patch ./Makefile.config.example.patch ];
30 createFindlibDestdir = true;
32 preConfigure = "patchShebangs ./configure.sh";
34 configureScript = "./configure.sh";
35 dontAddPrefix = "true";
36 dontAddStaticConfigureFlags = true;
37 configurePlatforms = [];
39 propagatedBuildInputs = [ javalib ];
42 description = "A library written in OCaml, relying on Javalib to provide a high level representation of Java bytecode programs";
43 homepage = "http://sawja.inria.fr/";
44 license = licenses.gpl3Plus;
45 maintainers = [ maintainers.vbgl ];
46 inherit (ocaml.meta) platforms;