12 if lib.versionOlder ocaml.version "4.06" then
13 throw "lablgl is not available for OCaml ${ocaml.version}"
16 stdenv.mkDerivation rec {
17 pname = "ocaml${ocaml.version}-lablgl";
20 src = fetchFromGitHub {
24 hash = "sha256-GiQKHMn5zHyvDrA2ve12X5YTm3/RZp8tukIqifgVaW4=";
37 propagatedBuildInputs = [
41 patches = [ ./META.patch ];
45 mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
47 Makefile.config.${if stdenv.hostPlatform.isDarwin then "osx" else "ex"} \
52 "BINDIR=${placeholder "out"}/bin/"
53 "INSTALLDIR=${placeholder "out"}/lib/ocaml/${ocaml.version}/site-lib/lablgl/"
54 "DLLDIR=${placeholder "out"}/lib/ocaml/${ocaml.version}/site-lib/stublibs/"
68 cp ./META $out/lib/ocaml/${ocaml.version}/site-lib/lablgl
72 description = "OpenGL bindings for ocaml";
73 homepage = "http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html";
74 license = licenses.gpl2;
75 maintainers = with maintainers; [
79 mainProgram = "lablglut";