mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ 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;
|
|
};
|
|
}
|