nixpkgs/pkgs/development/ocaml-modules/javalib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, which
, ocaml
, findlib
, camlzip
, extlib
}:
2016-10-05 09:32:30 +02:00
2023-01-27 07:23:45 +01:00
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
"javalib is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-javalib";
2023-01-27 07:23:45 +01:00
version = "3.2.2";
src = fetchFromGitHub {
owner = "javalib-team";
repo = "javalib";
2023-01-27 07:23:45 +01:00
rev = version;
hash = "sha256-XaI7GTU/O5UEWuYX4yqaIRmEoH7FuvCg/+gtKbE/P1s=";
};
nativeBuildInputs = [ which ocaml findlib ];
strictDeps = true;
patches = [ ./configure.sh.patch ./Makefile.config.example.patch ];
createFindlibDestdir = true;
configureScript = "./configure.sh";
dontAddPrefix = "true";
dontAddStaticConfigureFlags = true;
configurePlatforms = [ ];
2019-08-20 06:45:46 +02:00
propagatedBuildInputs = [ camlzip extlib ];
meta = with lib; {
description = "A library that parses Java .class files into OCaml data structures";
homepage = "https://javalib-team.github.io/javalib/";
license = licenses.lgpl3;
maintainers = [ maintainers.vbgl ];
2019-08-20 06:45:46 +02:00
inherit (ocaml.meta) platforms;
};
}