about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lablgtk3
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-12-03 12:10:15 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-12-13 09:09:09 +0000
commit113a7562fed2353cfd49d89b899fa363acb19834 (patch)
tree68171e654729b178fb78fa50b49683b06bd375bb /pkgs/development/ocaml-modules/lablgtk3
parenteb250e2ddd6b5fa43aa3ff2ed0e3402ceff884c8 (diff)
downloadnixlib-113a7562fed2353cfd49d89b899fa363acb19834.tar
nixlib-113a7562fed2353cfd49d89b899fa363acb19834.tar.gz
nixlib-113a7562fed2353cfd49d89b899fa363acb19834.tar.bz2
nixlib-113a7562fed2353cfd49d89b899fa363acb19834.tar.lz
nixlib-113a7562fed2353cfd49d89b899fa363acb19834.tar.xz
nixlib-113a7562fed2353cfd49d89b899fa363acb19834.tar.zst
nixlib-113a7562fed2353cfd49d89b899fa363acb19834.zip
ocamlPackages.lablgtk3: init at 3.0.beta1
Diffstat (limited to 'pkgs/development/ocaml-modules/lablgtk3')
-rw-r--r--pkgs/development/ocaml-modules/lablgtk3/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lablgtk3/default.nix b/pkgs/development/ocaml-modules/lablgtk3/default.nix
new file mode 100644
index 000000000000..6de7a26fbd6c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/lablgtk3/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, pkgconfig, ocaml, findlib, gtk3, gtkspell3, gtksourceview }:
+
+if !stdenv.lib.versionAtLeast ocaml.version "4.03"
+then throw "lablgtk3 is not available for OCaml ${ocaml.version}"
+else
+
+stdenv.mkDerivation rec {
+  version = "3.0.beta1";
+  name = "ocaml${ocaml.version}-lablgtk3-${version}";
+  src = fetchurl {
+    url = https://forge.ocamlcore.org/frs/download.php/1769/lablgtk-3.0.beta1.tar.gz;
+    sha256 = "08izn2kwxdz1i74m11lqkl9n50bs7sy6pl8mcq6br77znarvqb91";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ ocaml findlib gtk3 gtkspell3 gtksourceview ];
+
+  buildFlags = "world";
+
+  meta = {
+    description = "OCaml interface to gtk+-3";
+    homepage = "http://lablgtk.forge.ocamlcore.org/";
+    license = stdenv.lib.licenses.lgpl21;
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+    inherit (ocaml.meta) platforms;
+  };
+}