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-08-05 21:33:18 +00:00
|
|
|
version = "20210511";
|
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";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "1cb94ea3731dc994c205940c9434543ce3f2470cdcb2e93a3e02ed793e80d480";
|
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
|
|
|
};
|
|
|
|
}
|