2019-08-21 23:50:14 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, ninja
|
|
|
|
, meson
|
|
|
|
, pkgconfig
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, graphene
|
|
|
|
, epoxy
|
|
|
|
, json-glib
|
|
|
|
}:
|
|
|
|
|
2019-09-09 13:36:49 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-21 23:50:14 +02:00
|
|
|
pname = "gthree";
|
2019-09-09 13:36:49 +02:00
|
|
|
version = "0.2.0";
|
2019-08-21 23:50:14 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexlarsson";
|
|
|
|
repo = "gthree";
|
2019-09-09 13:36:49 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "16ap1ampnzsyhrs84b168d6889lh8sjr2j5sqv9mdbnnhy72p5cd";
|
2019-08-21 23:50:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
ninja
|
|
|
|
meson
|
|
|
|
pkgconfig
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
epoxy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
graphene
|
|
|
|
json-glib
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GObject/GTK port of three.js";
|
2019-09-09 13:36:49 +02:00
|
|
|
homepage = "https://github.com/alexlarsson/gthree";
|
2019-08-21 23:50:14 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|