2021-02-16 07:39:46 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, decompress, stdlib-shims, alcotest
|
|
|
|
}:
|
2018-05-23 08:33:26 +00:00
|
|
|
|
2019-10-21 05:36:52 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.07";
|
2021-07-24 18:12:39 +00:00
|
|
|
version = "20210511";
|
2019-10-21 05:36:52 +00: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 12:35:59 +00:00
|
|
|
url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz";
|
2021-07-24 18:12:39 +00:00
|
|
|
sha256 = "1cb94ea3731dc994c205940c9434543ce3f2470cdcb2e93a3e02ed793e80d480";
|
2018-05-23 08:33:26 +00:00
|
|
|
};
|
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
propagatedBuildInputs = [ decompress stdlib-shims ];
|
2018-05-23 08:33:26 +00:00
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ alcotest ];
|
2018-05-23 08:33:26 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image formats such as PNG and PPM in OCaml";
|
2019-10-21 05:36:52 +00: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 08:33:26 +00:00
|
|
|
};
|
|
|
|
}
|