2015-01-13 11:17:25 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, camlp4, findlib, lablgtk-extras }:
|
|
|
|
|
|
|
|
let pname = "gtktop-2.0"; in
|
|
|
|
|
2018-08-21 15:53:38 +02:00
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.06"
|
|
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2015-01-13 11:17:25 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-${pname}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://zoggy.github.io/gtktop/${pname}.tar.gz";
|
|
|
|
sha256 = "0cpmnavvham9mwxknm6df90g9qxabcvn2kfwlf9mncqa0z3rknz6";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml camlp4 findlib ];
|
|
|
|
propagatedBuildInputs = [ lablgtk-extras ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://zoggy.github.io/gtktop/";
|
2015-01-13 11:17:25 +01:00
|
|
|
description = "A small OCaml library to ease the creation of graphical toplevels";
|
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-13 11:17:25 +01:00
|
|
|
};
|
|
|
|
}
|