1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:17:14 +00:00
nixpkgs/pkgs/development/ocaml-modules/jingoo/default.nix
2018-07-29 21:18:09 +02:00

30 lines
812 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, ounit, pcre, uutf }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "jingoo is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-jingoo-${version}";
version = "1.2.18";
src = fetchFromGitHub {
owner = "tategakibunko";
repo = "jingoo";
rev = "v${version}";
sha256 = "0gciiysrjy5r4yiisc41k4h0p530yawzqnr364xg8fdkk444fgkn";
};
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ pcre uutf ];
createFindlibDestdir = true;
meta = with stdenv.lib; {
homepage = https://github.com/tategakibunko/jingoo;
description = "OCaml template engine almost compatible with jinja2";
license = licenses.mit;
maintainers = [ maintainers.ericbmerritt ];
};
}