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 @@
--- sawja-1.5-orig/Makefile.config.example 2013-10-30 08:35:29.000000000 +0100
+++ sawja-1.5/Makefile.config.example 2014-07-05 18:54:37.902423482 +0200
@@ -1,6 +1,3 @@
-export OCAMLFIND_DESTDIR=$(LOCALDEST)
-export OCAMLPATH=$(LOCALDEST)
-
RECODE=-charset utf-8
DOCDIR = doc/api

View File

@@ -0,0 +1,11 @@
--- sawja-1.5-orig/configure.sh 2013-10-30 08:35:29.000000000 +0100
+++ sawja-1.5/configure.sh 2014-07-05 18:50:26.833798254 +0200
@@ -39,7 +39,7 @@
DESTDIR=
# The ocamlpath variable for the compiler to locate the locally-installed
# packages (depends on LOCALDEST)
-OCAMLPATH=
+#OCAMLPATH=
# The path to ocamlfind
FINDER=`which ocamlfind`
# The perl executable

View File

@@ -0,0 +1,62 @@
{
lib,
stdenv,
fetchFromGitHub,
which,
ocaml,
findlib,
javalib,
}:
let
pname = "sawja";
version = "1.5.12";
in
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
"${pname} is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation
{
pname = "ocaml${ocaml.version}-${pname}";
inherit version;
src = fetchFromGitHub {
owner = "javalib-team";
repo = pname;
rev = version;
hash = "sha256-G1W8/G0TEcldnFnH/NAb9a6ZSGGP2fWTM47lI8bBHnw=";
};
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 = [ javalib ];
meta = with lib; {
description = "Library written in OCaml, relying on Javalib to provide a high level representation of Java bytecode programs";
homepage = "http://sawja.inria.fr/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}