summary refs log tree commit diff
path: root/pkgs/development/libraries/gthree
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-08-21 23:50:14 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-08-22 02:24:55 +0200
commit144ac2bd16d8c4dc829b6a971679d952bf415d58 (patch)
tree1605bed189adaba6308d276d59ba4a3861a28a89 /pkgs/development/libraries/gthree
parent0e51dcda37d028d00f5bdcf6dfe73af9d3e61e64 (diff)
downloadnixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.tar
nixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.tar.gz
nixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.tar.bz2
nixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.tar.lz
nixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.tar.xz
nixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.tar.zst
nixpkgs-144ac2bd16d8c4dc829b6a971679d952bf415d58.zip
gthree: unstable-2019-10-21
Diffstat (limited to 'pkgs/development/libraries/gthree')
-rw-r--r--pkgs/development/libraries/gthree/default.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gthree/default.nix b/pkgs/development/libraries/gthree/default.nix
new file mode 100644
index 00000000000..6588b8ab440
--- /dev/null
+++ b/pkgs/development/libraries/gthree/default.nix
@@ -0,0 +1,72 @@
+{ stdenv
+, fetchFromGitHub
+, fetchpatch
+, ninja
+, meson
+, pkgconfig
+, gobject-introspection
+, gtk-doc
+, docbook_xsl
+, docbook_xml_dtd_43
+, glib
+, gtk3
+, graphene
+, epoxy
+, json-glib
+}:
+
+stdenv.mkDerivation rec {
+  pname = "gthree";
+  version = "unstable-2019-08-21";
+
+  outputs = [ "out" "dev" "devdoc" ];
+
+  src = fetchFromGitHub {
+    owner = "alexlarsson";
+    repo = "gthree";
+    rev = "dac46b0f35e29319c004c7e17b5f345ef4c04cb8";
+    sha256 = "16ixis2g04000zffm44s7ir64vn3byz9a793g2s76aasqybl86i2";
+  };
+
+  patches = [
+    # correctly declare json-glib in .pc file
+    # https://github.com/alexlarsson/gthree/pull/61
+    (fetchpatch {
+      url = https://github.com/alexlarsson/gthree/commit/784b1f20e0b6eb15f113a51f74c2cba871249861.patch;
+      sha256 = "07vxafaxris5a98w751aw04nlw0l45np1lba08xd16wdzmkadz0x";
+    })
+  ];
+
+  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";
+    homepage = https://github.com/alexlarsson/gthree;
+    license = licenses.mit;
+    maintainers = with maintainers; [ jtojnar ];
+    platforms = platforms.unix;
+  };
+}