about summary refs log tree commit diff
path: root/pkgs/applications/misc/tuba
diff options
context:
space:
mode:
authorChuang Zhu <git@chuang.cz>2023-03-23 20:57:04 +0800
committerChuang Zhu <git@chuang.cz>2023-03-23 20:57:04 +0800
commit2b01458e66af186e75a9d96e0d55f9bdffb69e13 (patch)
tree773640384a9849bbb57f60606e87af85267e5f88 /pkgs/applications/misc/tuba
parent19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e (diff)
tuba: init at 0.1.0
Diffstat (limited to 'pkgs/applications/misc/tuba')
-rw-r--r--pkgs/applications/misc/tuba/default.nix74
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/applications/misc/tuba/default.nix b/pkgs/applications/misc/tuba/default.nix
new file mode 100644
index 0000000000000..f884a3984d6ce
--- /dev/null
+++ b/pkgs/applications/misc/tuba/default.nix
@@ -0,0 +1,74 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, vala
+, meson
+, ninja
+, python3
+, pkg-config
+, wrapGAppsHook
+, desktop-file-utils
+, gtk4
+, libadwaita
+, json-glib
+, glib
+, glib-networking
+, libxml2
+, libgee
+, libsoup
+, libsecret
+, gst_all_1
+, nix-update-script
+}:
+
+stdenv.mkDerivation rec {
+  pname = "tuba";
+  version = "0.1.0";
+  src = fetchFromGitHub {
+    owner = "GeopJr";
+    repo = "Tuba";
+    rev = "v${version}";
+    hash = "sha256-dkURVzbDBrE4bBUvf2fPqvgLKE07tn7jl3OudZpEWUo=";
+  };
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    vala
+    python3
+    wrapGAppsHook
+    desktop-file-utils
+  ];
+
+  buildInputs = [
+    glib
+    glib-networking
+    json-glib
+    libxml2
+    libgee
+    libsoup
+    gtk4
+    libadwaita
+    libsecret
+  ] ++ (with gst_all_1; [
+    gstreamer
+    gst-libav
+    gst-plugins-base
+    (gst-plugins-good.override { gtkSupport = true; })
+    gst-plugins-bad
+  ]);
+
+  passthru = {
+    updateScript = nix-update-script {
+      attrPath = "tuba";
+    };
+  };
+
+  meta = with lib; {
+    description = "Browse the Fediverse";
+    homepage = "https://tuba.geopjr.dev/";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ chuangzhu ];
+  };
+}