12 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
13 "javalib is not available for OCaml ${ocaml.version}"
17 pname = "ocaml${ocaml.version}-javalib";
20 src = fetchFromGitHub {
21 owner = "javalib-team";
24 hash = "sha256-XaI7GTU/O5UEWuYX4yqaIRmEoH7FuvCg/+gtKbE/P1s=";
37 ./Makefile.config.example.patch
40 createFindlibDestdir = true;
42 configureScript = "./configure.sh";
43 dontAddPrefix = "true";
44 dontAddStaticConfigureFlags = true;
45 configurePlatforms = [ ];
47 propagatedBuildInputs = [
53 description = "Library that parses Java .class files into OCaml data structures";
54 homepage = "https://javalib-team.github.io/javalib/";
55 license = licenses.lgpl3;
56 maintainers = [ maintainers.vbgl ];
57 inherit (ocaml.meta) platforms;