mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
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>
59 lines
1.1 KiB
Nix
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");
|
|
};
|
|
}
|