2021-02-16 07:39:46 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, decompress, stdlib-shims, alcotest
|
|
|
|
}:
|
2018-05-23 09:33:26 +01:00
|
|
|
|
2019-10-21 06:36:52 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.07";
|
2021-02-16 07:39:46 +00:00
|
|
|
version = "20200929";
|
2019-10-21 06:36:52 +01:00
|
|
|
pname = "imagelib";
|
2020-11-01 06:49:29 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/ocaml-imagelib_${version}/imagelib-ocaml-imagelib_${version}.tbz";
|
|
|
|
sha256 = "1wyq4xxj0dxwafbcmd7jylsd8w1gbyl7j4ak6jbq1n0ardwmpwca";
|
2018-05-23 09:33:26 +01:00
|
|
|
};
|
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
propagatedBuildInputs = [ decompress stdlib-shims ];
|
2018-05-23 09:33:26 +01:00
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ alcotest ];
|
2018-05-23 09:33:26 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image formats such as PNG and PPM in OCaml";
|
2019-10-21 06:36:52 +01:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2021-02-16 07:39:46 +00:00
|
|
|
homepage = "https://github.com/rlepigre/ocaml-imagelib";
|
2018-05-23 09:33:26 +01:00
|
|
|
};
|
|
|
|
}
|