Files
nixpkgs/pkgs/development/ocaml-modules/sawja/default.nix
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

59 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
which,
ocaml,
findlib,
javalib,
}:
let
pname = "sawja";
version = "1.5.12";
in
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 = {
description = "Library written in OCaml, relying on Javalib to provide a high level representation of Java bytecode programs";
homepage = "http://sawja.inria.fr/";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
broken = !(lib.versionAtLeast ocaml.version "4.08");
};
}