Skip to content

Commit

Permalink
ocamlPackages.jingoo: 1.2.7 -> 1.2.18 (#44106)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl authored and xeji committed Jul 29, 2018
1 parent 09d25d7 commit 5bc007b
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions pkgs/development/ocaml-modules/jingoo/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{stdenv, buildOcaml, fetchurl, batteries, pcre}:
{ stdenv, fetchFromGitHub, ocaml, findlib, ounit, pcre, uutf }:

buildOcaml rec {
name = "jingoo";
version = "1.2.7";
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "jingoo is not available for OCaml ${ocaml.version}"
else

src = fetchurl {
url = "https://github.com/tategakibunko/jingoo/archive/v${version}.tar.gz";
sha256 = "8ffc5723d77b323a12761981d048c046af77db47543a4b1076573aa5f4003009";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-jingoo-${version}";
version = "1.2.18";

src = fetchFromGitHub {
owner = "tategakibunko";
repo = "jingoo";
rev = "v${version}";
sha256 = "0gciiysrjy5r4yiisc41k4h0p530yawzqnr364xg8fdkk444fgkn";
};

propagatedBuildInputs = [ batteries pcre ];
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ pcre uutf ];

preInstall = "mkdir -p $out/bin";
installFlags = "BINDIR=$(out)/bin";
createFindlibDestdir = true;

meta = with stdenv.lib; {
homepage = https://github.com/tategakibunko/jingoo;
Expand Down

0 comments on commit 5bc007b

Please sign in to comment.