2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchurl, ocaml, buildDunePackage }:
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
let params =
|
|
|
|
if lib.versionAtLeast ocaml.version "4.08" then {
|
|
|
|
version = "1.3.3";
|
|
|
|
sha256 = "sha256:05n4mm1yz33h9gw811ivjw7x4m26lpmf7kns9lza4v6227lwmz7a";
|
|
|
|
} else {
|
|
|
|
version = "1.3.2";
|
|
|
|
sha256 = "sha256:09hrikx310pac2sb6jzaa7k6fmiznnmhdsqij1gawdymhawc4h1l";
|
|
|
|
};
|
|
|
|
in
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "easy-format";
|
2022-05-18 14:49:53 +00:00
|
|
|
inherit (params) version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-community/easy-format/releases/download/${version}/easy-format-${version}.tbz";
|
|
|
|
inherit (params) sha256;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A high-level and functional interface to the Format module of the OCaml standard library";
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://github.com/ocaml-community/easy-format";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|