Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 pkg-config, 5 buildDunePackage, 6 dune-configurator, 7 gtk3, 8 cairo2, 9 camlp-streams, 10}: 11 12buildDunePackage rec { 13 version = "3.1.5"; 14 pname = "lablgtk3"; 15 16 minimalOCamlVersion = "4.06"; 17 18 src = fetchurl { 19 url = "https://github.com/garrigue/lablgtk/releases/download/${version}/lablgtk3-${version}.tbz"; 20 hash = "sha256-1IIc2+zzrjdPIDF9Y+Q/5YAww7qWV7UaLoPmUhl+jqw="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 buildInputs = [ 25 dune-configurator 26 camlp-streams 27 ]; 28 propagatedBuildInputs = [ 29 gtk3 30 cairo2 31 ]; 32 33 meta = { 34 description = "OCaml interface to GTK 3"; 35 homepage = "http://lablgtk.forge.ocamlcore.org/"; 36 license = lib.licenses.lgpl21; 37 maintainers = [ lib.maintainers.vbgl ]; 38 }; 39}