Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, fetchurl
3, buildDunePackage
4, ocaml
5, decompress
6, stdlib-shims
7, alcotest
8}:
9
10buildDunePackage rec {
11 minimalOCamlVersion = "4.08";
12 version = "20221222";
13 pname = "imagelib";
14
15 duneVersion = "3";
16
17 src = fetchurl {
18 url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz";
19 hash = "sha256-BQ2TVxGlpc6temteK84TKXpx0MtHZSykL/TjKN9xGP0=";
20 };
21
22 propagatedBuildInputs = [ decompress stdlib-shims ];
23
24 doCheck = true;
25 checkInputs = [ alcotest ];
26
27 meta = {
28 description = "Image formats such as PNG and PPM in OCaml";
29 homepage = "https://github.com/rlepigre/ocaml-imagelib";
30 license = lib.licenses.lgpl3;
31 maintainers = [ lib.maintainers.vbgl ];
32 mainProgram = "imagetool";
33 };
34}