mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
935e991b72
js_of_ocaml-camlp4: init at 3.0.0 js_of_ocaml-ppx: init at 3.0.0
32 lines
907 B
Nix
32 lines
907 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, uutf, sedlex, ppx_tools, js_of_ocaml
|
|
, js_of_ocaml-camlp4, camlp4, re }:
|
|
|
|
if stdenv.lib.versionOlder ocaml.version "4.03"
|
|
then throw "xtmpl not supported for ocaml ${ocaml.version}"
|
|
else
|
|
stdenv.mkDerivation rec {
|
|
name = "xtmpl-${version}";
|
|
version = "0.16.0";
|
|
src = fetchFromGitHub {
|
|
owner = "zoggy";
|
|
repo = "xtmpl";
|
|
rev = version;
|
|
sha256 = "1dj5b4b266y4d8q3v1g0xsivz4vkhj0gi0jis37w84xcnlgiik8k";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ppx_tools js_of_ocaml js_of_ocaml-camlp4 camlp4 ];
|
|
propagatedBuildInputs = [ sedlex uutf re ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
dontStrip = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Xml template library for OCaml";
|
|
homepage = https://zoggy.github.io/xtmpl/;
|
|
license = licenses.lgpl3;
|
|
platforms = ocaml.meta.platforms or [];
|
|
maintainers = with maintainers; [ regnat ];
|
|
};
|
|
}
|