1{
2 buildDunePackage,
3 fetchFromGitHub,
4 fetchpatch,
5 lib,
6}:
7
8let
9 pname = "camlgpc";
10 version = "1.2";
11in
12buildDunePackage {
13 inherit pname version;
14 src = fetchFromGitHub {
15 owner = "johnwhitington";
16 repo = pname;
17 rev = "v${version}";
18 hash = "sha256-+Dx8BuRlxb8xh41jHskrNcKGV/HgedauLt1vo1tADHw=";
19 };
20 patches = [
21 (fetchpatch {
22 name = "camlgpc-pr-5-switch-to-dune";
23 url = "https://github.com/johnwhitington/camlgpc/pull/5.diff";
24 hash = "sha256-znm+mX60RwYNCYXwm9HYCO8BRbzUM0Bm6dI1f1FzncA=";
25 })
26 ];
27 propagatedBuildInputs = [ ];
28 doCheck = true;
29 checkInputs = [ ];
30 meta = {
31 description = "OCaml interface to Alan Murta's General Polygon Clipper";
32 homepage = "https://github.com/johnwhitington/camlgpc";
33 license = lib.licenses.mit;
34 maintainers = [ lib.maintainers.vog ];
35 };
36}