push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
--- javalib-2.3-orig/Makefile.config.example 2013-10-30 08:35:30.000000000 +0100
+++ javalib-2.3/Makefile.config.example 2014-07-06 17:32:29.799398394 +0200
@@ -1,6 +1,3 @@
-export OCAMLFIND_DESTDIR=$(LOCALDEST)
-export OCAMLPATH=$(LOCALDEST)
-
OCAMLC = $(FINDER) ocamlc $(FLAGS)
OCAMLOPT = $(FINDER) ocamlopt $(OPT_FLAGS)
OCAMLDOC = $(FINDER) ocamldoc

View File

@@ -0,0 +1,11 @@
--- javalib-2.3-orig/configure.sh 2013-10-30 08:35:30.000000000 +0100
+++ javalib-2.3/configure.sh 2014-07-06 17:28:39.025066199 +0200
@@ -44,7 +44,7 @@
DESTDIR=
# The ocamlpath variable for the compiler to locate the locally-installed
# packages (depends on LOCALDEST)
-OCAMLPATH=
+#OCAMLPATH=
# The packages that need to be made in addition to Savalib / Sawja
MAKEDEP=
# The packages that need to be made in addition to Savalib / Sawja

View File

@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchFromGitHub,
which,
ocaml,
findlib,
camlzip,
extlib,
}:
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
"javalib is not available for OCaml ${ocaml.version}"
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 = with lib; {
description = "Library that parses Java .class files into OCaml data structures";
homepage = "https://javalib-team.github.io/javalib/";
license = licenses.lgpl3;
maintainers = [ maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}