Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 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 = [ 23 decompress 24 stdlib-shims 25 ]; 26 27 doCheck = true; 28 checkInputs = [ alcotest ]; 29 30 meta = { 31 description = "Image formats such as PNG and PPM in OCaml"; 32 homepage = "https://github.com/rlepigre/ocaml-imagelib"; 33 license = lib.licenses.lgpl3; 34 maintainers = [ lib.maintainers.vbgl ]; 35 mainProgram = "imagetool"; 36 }; 37}