2021-02-16 17:04:54 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, decompress, stdlib-shims, alcotest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.07";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "20210402";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "imagelib";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
src = fetchurl {
|
2021-04-05 15:23:46 +00:00
|
|
|
url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz";
|
|
|
|
sha256 = "b3c8ace02b10b36b6c60b3ce3ae0b9109d4a861916ec320c59cc1194f4cc86e3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [ decompress stdlib-shims ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image formats such as PNG and PPM in OCaml";
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2021-02-16 17:04:54 +00:00
|
|
|
homepage = "https://github.com/rlepigre/ocaml-imagelib";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|