1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

ocamlPackages.lablgtk: 2.18.5 -> 2.18.6

This commit is contained in:
Vincent Laporte 2017-10-31 00:18:41 +00:00
parent 25515ce928
commit 54d1e1412b
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,18 +1,24 @@
{ stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk2, libgnomecanvas, libglade, gtksourceview }:
let
pname = "lablgtk";
in
assert stdenv.lib.versionAtLeast ocaml.version "3.12";
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "2.18.5";
src = fetchurl {
let param =
let check = stdenv.lib.versionAtLeast ocaml.version; in
if check "4.06" then {
version = "2.18.6";
url = https://forge.ocamlcore.org/frs/download.php/1726/lablgtk-2.18.6.tar.gz;
sha256 = "1y38fdvswy6hmppm65qvgdk4pb3ghhnvz7n4ialf46340r1s5p2d";
} else if check "3.12" then {
version = "2.18.5";
url = https://forge.ocamlcore.org/frs/download.php/1627/lablgtk-2.18.5.tar.gz;
sha256 = "0cyj6sfdvzx8hw7553lhgwc0krlgvlza0ph3dk9gsxy047dm3wib";
} else throw "lablgtk is not available for OCaml ${ocaml.version}";
in
stdenv.mkDerivation rec {
name = "lablgtk-${version}";
inherit (param) version;
src = fetchurl {
inherit (param) url sha256;
};
nativeBuildInputs = [ pkgconfig ];