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-04-02 13:35:59 +01:00
|
|
|
version = "20210402";
|
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 {
|
2021-04-02 13:35:59 +01:00
|
|
|
url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz";
|
|
|
|
sha256 = "b3c8ace02b10b36b6c60b3ce3ae0b9109d4a861916ec320c59cc1194f4cc86e3";
|
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
|
|
|
};
|
|
|
|
}
|