Files
nixpkgs/pkgs/development/ocaml-modules/javalib/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
which,
ocaml,
findlib,
camlzip,
extlib,
}:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-javalib";
version = "3.2.2";
src = fetchFromGitHub {
owner = "javalib-team";
repo = "javalib";
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 = [ ];
propagatedBuildInputs = [
camlzip
extlib
];
meta = {
description = "Library that parses Java .class files into OCaml data structures";
homepage = "https://javalib-team.github.io/javalib/";
license = lib.licenses.lgpl3;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
broken = !(lib.versionAtLeast ocaml.version "4.08");
};
}