mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
44 lines
794 B
Nix
44 lines
794 B
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
buildDunePackage,
|
|
findlib,
|
|
dune-configurator,
|
|
cppo,
|
|
graphics,
|
|
stdio,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "camlimages";
|
|
version = "5.0.5";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "camlspotter";
|
|
repo = "camlimages";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-/Dkj8IBVPjGCJCXrLOuJtuaa+nD/a9e8/N+TN9ukw4k=";
|
|
};
|
|
|
|
# stdio v0.17 compatibility
|
|
patches = [ ./camlimages.patch ];
|
|
|
|
nativeBuildInputs = [ cppo ];
|
|
buildInputs = [
|
|
dune-configurator
|
|
findlib
|
|
graphics
|
|
stdio
|
|
];
|
|
|
|
meta = {
|
|
branch = "5.0";
|
|
homepage = "https://gitlab.com/camlspotter/camlimages";
|
|
description = "OCaml image processing library";
|
|
license = lib.licenses.lgpl2;
|
|
maintainers = [
|
|
lib.maintainers.mt-caret
|
|
];
|
|
};
|
|
})
|