ocamlPackages.xtmpl: init at 0.16.0

authored by regnat and committed by Vincent Laporte 40158137 2f020cf7

+33
+31
pkgs/development/ocaml-modules/xtmpl/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, ocaml, findlib, uutf, sedlex, ppx_tools, js_of_ocaml 2 + , re }: 3 + 4 + if stdenv.lib.versionOlder ocaml.version "4.03" 5 + then throw "xtmpl not supported for ocaml ${ocaml.version}" 6 + else 7 + stdenv.mkDerivation rec { 8 + name = "xtmpl-${version}"; 9 + version = "0.16.0"; 10 + src = fetchFromGitHub { 11 + owner = "zoggy"; 12 + repo = "xtmpl"; 13 + rev = version; 14 + sha256 = "1dj5b4b266y4d8q3v1g0xsivz4vkhj0gi0jis37w84xcnlgiik8k"; 15 + }; 16 + 17 + buildInputs = [ ocaml findlib ppx_tools js_of_ocaml ]; 18 + propagatedBuildInputs = [ sedlex uutf re ]; 19 + 20 + createFindlibDestdir = true; 21 + 22 + meta = with stdenv.lib; { 23 + description = "Xml template library for OCaml"; 24 + homepage = "https://zoggy.github.io/xtmpl/"; 25 + license = licenses.lgpl3; 26 + platforms = ocaml.meta.platforms or []; 27 + maintainers = with maintainers; [ regnat ]; 28 + }; 29 + } 30 + 31 +
+2
pkgs/top-level/ocaml-packages.nix
··· 555 556 xml-light = callPackage ../development/ocaml-modules/xml-light { }; 557 558 yojson = callPackage ../development/ocaml-modules/yojson { }; 559 560 zarith = callPackage ../development/ocaml-modules/zarith { };
··· 555 556 xml-light = callPackage ../development/ocaml-modules/xml-light { }; 557 558 + xtmpl = callPackage ../development/ocaml-modules/xtmpl { }; 559 + 560 yojson = callPackage ../development/ocaml-modules/yojson { }; 561 562 zarith = callPackage ../development/ocaml-modules/zarith { };