nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 58 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 which, 6 ocaml, 7 findlib, 8 javalib, 9}: 10 11let 12 pname = "sawja"; 13 version = "1.5.12"; 14in 15stdenv.mkDerivation { 16 17 pname = "ocaml${ocaml.version}-${pname}"; 18 19 inherit version; 20 21 src = fetchFromGitHub { 22 owner = "javalib-team"; 23 repo = pname; 24 rev = version; 25 hash = "sha256-G1W8/G0TEcldnFnH/NAb9a6ZSGGP2fWTM47lI8bBHnw="; 26 }; 27 28 nativeBuildInputs = [ 29 which 30 ocaml 31 findlib 32 ]; 33 34 strictDeps = true; 35 36 patches = [ 37 ./configure.sh.patch 38 ./Makefile.config.example.patch 39 ]; 40 41 createFindlibDestdir = true; 42 43 configureScript = "./configure.sh"; 44 dontAddPrefix = "true"; 45 dontAddStaticConfigureFlags = true; 46 configurePlatforms = [ ]; 47 48 propagatedBuildInputs = [ javalib ]; 49 50 meta = { 51 description = "Library written in OCaml, relying on Javalib to provide a high level representation of Java bytecode programs"; 52 homepage = "http://sawja.inria.fr/"; 53 license = lib.licenses.gpl3Plus; 54 maintainers = [ lib.maintainers.vbgl ]; 55 inherit (ocaml.meta) platforms; 56 broken = !(lib.versionAtLeast ocaml.version "4.08"); 57 }; 58}