2022-09-09 14:08:57 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2021-02-16 17:04:54 +00:00
|
|
|
, decompress, stdlib-shims, alcotest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2023-01-11 07:51:40 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
version = "20221222";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "imagelib";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
duneVersion = "3";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-BQ2TVxGlpc6temteK84TKXpx0MtHZSykL/TjKN9xGP0=";
|
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
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image formats such as PNG and PPM in OCaml";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/rlepigre/ocaml-imagelib";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2022-06-16 17:23:12 +00:00
|
|
|
mainProgram = "imagetool";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|