2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, camlp4, findlib, lablgtk-extras }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let pname = "gtktop-2.0"; in
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
homepage = "http://zoggy.github.io/gtktop/";
|
|
|
|
description = "A small OCaml library to ease the creation of graphical toplevels";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|