My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/ocaml-modules/imagelib/default.nix

29 lines
769 B

{ lib, fetchurl, buildDunePackage
, decompress, stdlib-shims, alcotest
}:
buildDunePackage rec {
minimumOCamlVersion = "4.07";
version = "20210511";
pname = "imagelib";
useDune2 = true;
src = fetchurl {
url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz";
sha256 = "1cb94ea3731dc994c205940c9434543ce3f2470cdcb2e93a3e02ed793e80d480";
};
propagatedBuildInputs = [ decompress stdlib-shims ];
doCheck = true;
checkInputs = [ alcotest ];
meta = {
description = "Image formats such as PNG and PPM in OCaml";
homepage = "https://github.com/rlepigre/ocaml-imagelib";
license = lib.licenses.lgpl3;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "imagetool";
};
}