2023-10-09 19:29:22 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitLab, fetchpatch, ocaml
|
2021-12-30 13:39:12 +00:00
|
|
|
, fmt, lwt_ppx, menhir, ocf_ppx, ppx_blob, xtmpl_ppx
|
|
|
|
, dune-build-info, dune-site, higlo, logs, lwt, ocf, ptime, uri, uutf, xtmpl
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.13"
|
|
|
|
then throw "stog is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "stog";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "0.20.0";
|
|
|
|
minimalOCamlVersion = "4.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "framagit.org";
|
|
|
|
owner = "zoggy";
|
|
|
|
repo = "stog";
|
|
|
|
rev = version;
|
2021-12-30 13:39:12 +00:00
|
|
|
sha256 = "sha256:0krj5w4y05bcfx7hk9blmap8avl31gp7yi01lpqzs6ync23mvm0x";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# Compatibility with higlo 0.9
|
|
|
|
patches = fetchpatch {
|
|
|
|
url = "https://framagit.org/zoggy/stog/-/commit/ea0546ab4cda8cc5c4c820ebaf2e3dfddc2ab101.patch";
|
|
|
|
hash = "sha256-86GRHF9OjfcalGfA0Om2wXH99j4THCs9a4+o5ghuiJc=";
|
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
|
|
|
buildInputs = [ fmt lwt_ppx ocf_ppx ppx_blob xtmpl_ppx ];
|
2021-12-30 13:39:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dune-build-info
|
|
|
|
dune-site
|
|
|
|
higlo
|
|
|
|
logs
|
|
|
|
lwt
|
|
|
|
ocf
|
|
|
|
ppx_blob
|
|
|
|
ptime
|
|
|
|
uri
|
|
|
|
uutf
|
|
|
|
xtmpl
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "XML documents and web site compiler";
|
|
|
|
homepage = "https://www.good-eris.net/stog";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ regnat ];
|
|
|
|
};
|
|
|
|
}
|