nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 which, 6 ocaml, 7 findlib, 8 camlzip, 9 extlib, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "ocaml${ocaml.version}-javalib"; 14 version = "3.2.2"; 15 16 src = fetchFromGitHub { 17 owner = "javalib-team"; 18 repo = "javalib"; 19 rev = version; 20 hash = "sha256-XaI7GTU/O5UEWuYX4yqaIRmEoH7FuvCg/+gtKbE/P1s="; 21 }; 22 23 nativeBuildInputs = [ 24 which 25 ocaml 26 findlib 27 ]; 28 29 strictDeps = true; 30 31 patches = [ 32 ./configure.sh.patch 33 ./Makefile.config.example.patch 34 ]; 35 36 createFindlibDestdir = true; 37 38 configureScript = "./configure.sh"; 39 dontAddPrefix = "true"; 40 dontAddStaticConfigureFlags = true; 41 configurePlatforms = [ ]; 42 43 propagatedBuildInputs = [ 44 camlzip 45 extlib 46 ]; 47 48 meta = { 49 description = "Library that parses Java .class files into OCaml data structures"; 50 homepage = "https://javalib-team.github.io/javalib/"; 51 license = lib.licenses.lgpl3; 52 maintainers = [ lib.maintainers.vbgl ]; 53 inherit (ocaml.meta) platforms; 54 broken = !(lib.versionAtLeast ocaml.version "4.08"); 55 }; 56}