git.iko.soy/typeable/nixpkgs
on master help sign in
gthree: unstable-2019-10-21
commit144ac2bd16d8c4dc829b6a971679d952bf415d58 authorJan Tojnar <jtojnar@gmail.com> dateWed 21 Aug 2019, 23:50 (7 years ago) parent0e51dcd
2 files changed+74
pkgs/development/libraries/gthree/default.nix+72 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/gthree/default.nixnew file+72
@@ -0,0 +1,72 @@
1+{ stdenv
2+, fetchFromGitHub
3+, fetchpatch
4+, ninja
5+, meson
6+, pkgconfig
7+, gobject-introspection
8+, gtk-doc
9+, docbook_xsl
10+, docbook_xml_dtd_43
11+, glib
12+, gtk3
13+, graphene
14+, epoxy
15+, json-glib
16+}:
17+
18+stdenv.mkDerivation rec {
19+ pname = "gthree";
20+ version = "unstable-2019-08-21";
21+
22+ outputs = [ "out" "dev" "devdoc" ];
23+
24+ src = fetchFromGitHub {
25+ owner = "alexlarsson";
26+ repo = "gthree";
27+ rev = "dac46b0f35e29319c004c7e17b5f345ef4c04cb8";
28+ sha256 = "16ixis2g04000zffm44s7ir64vn3byz9a793g2s76aasqybl86i2";
29+ };
30+
31+ patches = [
32+ # correctly declare json-glib in .pc file
33+ # https://github.com/alexlarsson/gthree/pull/61
34+ (fetchpatch {
35+ url = https://github.com/alexlarsson/gthree/commit/784b1f20e0b6eb15f113a51f74c2cba871249861.patch;
36+ sha256 = "07vxafaxris5a98w751aw04nlw0l45np1lba08xd16wdzmkadz0x";
37+ })
38+ ];
39+
40+ nativeBuildInputs = [
41+ ninja
42+ meson
43+ pkgconfig
44+ gtk-doc
45+ docbook_xsl
46+ docbook_xml_dtd_43
47+ gobject-introspection
48+ ];
49+
50+ buildInputs = [
51+ epoxy
52+ ];
53+
54+ propagatedBuildInputs = [
55+ glib
56+ gtk3
57+ graphene
58+ json-glib
59+ ];
60+
61+ mesonFlags = [
62+ "-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
63+ ];
64+
65+ meta = with stdenv.lib; {
66+ description = "GObject/GTK port of three.js";
67+ homepage = https://github.com/alexlarsson/gthree;
68+ license = licenses.mit;
69+ maintainers = with maintainers; [ jtojnar ];
70+ platforms = platforms.unix;
71+ };
72+}
pkgs/top-level/all-packages.nix+2
@@ -1690,6 +1690,8 @@ in
16901690
16911691 gsctl = callPackage ../applications/misc/gsctl { };
16921692
1693+ gthree = callPackage ../development/libraries/gthree { };
1694+
16931695 gti = callPackage ../tools/misc/gti { };
16941696
16951697 hdate = callPackage ../applications/misc/hdate { };