depot/third_party/nixpkgs/pkgs/development/ocaml-modules/imagelib/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

29 lines
763 B
Nix

{ lib, fetchurl, buildDunePackage, ocaml
, decompress, stdlib-shims, alcotest
}:
buildDunePackage rec {
minimalOCamlVersion = "4.08";
version = "20221222";
pname = "imagelib";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz";
hash = "sha256-BQ2TVxGlpc6temteK84TKXpx0MtHZSykL/TjKN9xGP0=";
};
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";
};
}