ocamlPackages.camlgpc: init at 1.2

This commit is contained in:
Volker Diels-Grabsch 2025-07-23 02:07:26 +02:00 committed by Vincent Laporte
parent 492dcb97f6
commit 8b3896f81d
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{
buildDunePackage,
fetchFromGitHub,
fetchpatch,
lib,
}:
let
pname = "camlgpc";
version = "1.2";
in
buildDunePackage {
inherit pname version;
src = fetchFromGitHub {
owner = "johnwhitington";
repo = pname;
rev = "v${version}";
hash = "sha256-+Dx8BuRlxb8xh41jHskrNcKGV/HgedauLt1vo1tADHw=";
};
patches = [
(fetchpatch {
name = "camlgpc-pr-5-switch-to-dune";
url = "https://github.com/johnwhitington/camlgpc/pull/5.diff";
hash = "sha256-znm+mX60RwYNCYXwm9HYCO8BRbzUM0Bm6dI1f1FzncA=";
})
];
propagatedBuildInputs = [ ];
doCheck = true;
checkInputs = [ ];
meta = {
description = "OCaml interface to Alan Murta's General Polygon Clipper";
homepage = "https://github.com/johnwhitington/camlgpc";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vog ];
};
}

View File

@ -165,6 +165,8 @@ let
callipyge = callPackage ../development/ocaml-modules/callipyge { };
camlgpc = callPackage ../development/ocaml-modules/camlgpc { };
camlidl = callPackage ../development/tools/ocaml/camlidl { };
camlimages = callPackage ../development/ocaml-modules/camlimages { };