lol

ocamlPackages.jingoo: 1.2.7 -> 1.2.18 (#44106)

authored by

Vincent Laporte and committed by
xeji
5bc007bb 09d25d7d

+16 -10
+16 -10
pkgs/development/ocaml-modules/jingoo/default.nix
··· 1 - {stdenv, buildOcaml, fetchurl, batteries, pcre}: 1 + { stdenv, fetchFromGitHub, ocaml, findlib, ounit, pcre, uutf }: 2 2 3 - buildOcaml rec { 4 - name = "jingoo"; 5 - version = "1.2.7"; 3 + if !stdenv.lib.versionAtLeast ocaml.version "4.02" 4 + then throw "jingoo is not available for OCaml ${ocaml.version}" 5 + else 6 6 7 - src = fetchurl { 8 - url = "https://github.com/tategakibunko/jingoo/archive/v${version}.tar.gz"; 9 - sha256 = "8ffc5723d77b323a12761981d048c046af77db47543a4b1076573aa5f4003009"; 7 + stdenv.mkDerivation rec { 8 + name = "ocaml${ocaml.version}-jingoo-${version}"; 9 + version = "1.2.18"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "tategakibunko"; 13 + repo = "jingoo"; 14 + rev = "v${version}"; 15 + sha256 = "0gciiysrjy5r4yiisc41k4h0p530yawzqnr364xg8fdkk444fgkn"; 10 16 }; 11 17 12 - propagatedBuildInputs = [ batteries pcre ]; 18 + buildInputs = [ ocaml findlib ]; 19 + propagatedBuildInputs = [ pcre uutf ]; 13 20 14 - preInstall = "mkdir -p $out/bin"; 15 - installFlags = "BINDIR=$(out)/bin"; 21 + createFindlibDestdir = true; 16 22 17 23 meta = with stdenv.lib; { 18 24 homepage = https://github.com/tategakibunko/jingoo;