2021-12-23 13:23:10 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitLab, ocaml
|
|
|
|
, fmt, lwt_ppx, menhir, ocf_ppx, ppx_blob, xtmpl_ppx
|
|
|
|
, dune-build-info, dune-site, higlo, logs, lwt, ocf, ptime, uri, uutf, xtmpl
|
2017-03-23 08:02:21 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-23 13:23:10 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.13"
|
|
|
|
then throw "stog is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "stog";
|
2021-12-23 13:23:10 +00:00
|
|
|
version = "0.20.0";
|
2022-03-16 16:30:43 +00:00
|
|
|
duneVersion = "3";
|
2021-12-23 13:23:10 +00:00
|
|
|
minimalOCamlVersion = "4.12";
|
2018-07-29 13:32:10 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "framagit.org";
|
2017-03-23 08:02:21 +00:00
|
|
|
owner = "zoggy";
|
|
|
|
repo = "stog";
|
2018-07-29 13:32:10 +00:00
|
|
|
rev = version;
|
2021-12-23 13:23:10 +00:00
|
|
|
sha256 = "sha256:0krj5w4y05bcfx7hk9blmap8avl31gp7yi01lpqzs6ync23mvm0x";
|
2017-03-23 08:02:21 +00:00
|
|
|
};
|
|
|
|
|
2021-12-23 13:23:10 +00:00
|
|
|
buildInputs = [ fmt lwt_ppx menhir ocf_ppx ppx_blob xtmpl_ppx ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dune-build-info
|
|
|
|
dune-site
|
|
|
|
higlo
|
|
|
|
logs
|
|
|
|
lwt
|
|
|
|
ocf
|
|
|
|
ppx_blob
|
|
|
|
ptime
|
|
|
|
uri
|
|
|
|
uutf
|
|
|
|
xtmpl
|
|
|
|
];
|
2017-03-23 08:02:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-23 08:02:21 +00:00
|
|
|
description = "XML documents and web site compiler";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.good-eris.net/stog";
|
2017-03-23 08:02:21 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ regnat ];
|
|
|
|
};
|
|
|
|
}
|