nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchFromGitHub, pkg-config, buildDunePackage, dune-configurator
2, gtk3, cairo2
3, camlp-streams
4}:
5
6buildDunePackage rec {
7 version = "3.1.3";
8 pname = "lablgtk3";
9
10 minimalOCamlVersion = "4.05";
11
12 src = fetchFromGitHub {
13 owner = "garrigue";
14 repo = "lablgtk";
15 rev = version;
16 sha256 = "sha256-1kXJP+tKudP3qfosTgZAQueNK46H9aLevEj6wxPKDWY=";
17 };
18
19 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ dune-configurator camlp-streams ];
21 propagatedBuildInputs = [ gtk3 cairo2 ];
22
23 meta = {
24 description = "OCaml interface to GTK 3";
25 homepage = "http://lablgtk.forge.ocamlcore.org/";
26 license = lib.licenses.lgpl21;
27 maintainers = [ lib.maintainers.vbgl ];
28 };
29}