diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-10-24 10:47:45 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-11-05 15:30:20 +0100 |
commit | 64686c25b749c0de8f3f2fcc09d083b97a5f6510 (patch) | |
tree | b35afaac47d43f213569c3633f7ce27759d86b91 /pkgs/development/ocaml-modules/lablgtk | |
parent | fdfbee12b24206c6bc95159bb1b173831b8e5de0 (diff) |
ocamlPackages.lablgtk: 2.18.12 → 2.18.13
Diffstat (limited to 'pkgs/development/ocaml-modules/lablgtk')
-rw-r--r-- | pkgs/development/ocaml-modules/lablgtk/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/lablgtk/default.nix b/pkgs/development/ocaml-modules/lablgtk/default.nix index 17f32ef3edebc..9a4bf801d1e55 100644 --- a/pkgs/development/ocaml-modules/lablgtk/default.nix +++ b/pkgs/development/ocaml-modules/lablgtk/default.nix @@ -1,16 +1,19 @@ -{ lib, stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, pkg-config, gtk2, libgnomecanvas, gtksourceview }: +{ lib, stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, pkg-config, gtk2, libgnomecanvas, gtksourceview +, camlp-streams +}: let param = let check = lib.versionAtLeast ocaml.version; in if check "4.06" then rec { - version = "2.18.12"; + version = "2.18.13"; src = fetchFromGitHub { owner = "garrigue"; repo = "lablgtk"; rev = version; - sha256 = "sha256:0asib87c42apwf1ln8541x6i3mvyajqbarifvz11in0mqn5k7g7h"; + sha256 = "sha256-69Svno0qLaUifMscnVuPUJlCo9d8Lee+1qiYx34G3Po="; }; NIX_CFLAGS_COMPILE = null; + buildInputs = [ camlp-streams ]; } else if check "3.12" then { version = "2.18.5"; src = fetchurl { @@ -26,11 +29,12 @@ let param = in stdenv.mkDerivation { - pname = "lablgtk"; + pname = "ocaml${ocaml.version}-lablgtk"; inherit (param) version src NIX_CFLAGS_COMPILE; nativeBuildInputs = [ pkg-config ocaml findlib ]; - buildInputs = [ gtk2 libgnomecanvas gtksourceview ]; + buildInputs = [ gtk2 libgnomecanvas gtksourceview ] + ++ param.buildInputs or []; configureFlags = [ "--with-libdir=$(out)/lib/ocaml/${ocaml.version}/site-lib" ]; buildFlags = [ "world" ]; |