2023-03-27 19:17:25 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, vala
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, pkg-config
|
2023-04-12 12:48:02 +00:00
|
|
|
, wrapGAppsHook4
|
2023-03-27 19:17:25 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, json-glib
|
|
|
|
, glib
|
|
|
|
, glib-networking
|
2023-10-09 19:29:22 +00:00
|
|
|
, gobject-introspection
|
2023-04-12 12:48:02 +00:00
|
|
|
, gtksourceview5
|
2023-03-27 19:17:25 +00:00
|
|
|
, libxml2
|
|
|
|
, libgee
|
2023-04-12 12:48:02 +00:00
|
|
|
, libsoup_3
|
2023-03-27 19:17:25 +00:00
|
|
|
, libsecret
|
2023-05-24 13:37:59 +00:00
|
|
|
, libwebp
|
2023-08-04 22:07:22 +00:00
|
|
|
, libspelling
|
2023-03-27 19:17:25 +00:00
|
|
|
, gst_all_1
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tuba";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.6.1";
|
2023-03-27 19:17:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GeopJr";
|
|
|
|
repo = "Tuba";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Tt2g7xwXf/o/ip5RgUCXclL9omWa/pRglkDMoEGn1AM=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
python3
|
2023-04-12 12:48:02 +00:00
|
|
|
wrapGAppsHook4
|
2023-03-27 19:17:25 +00:00
|
|
|
desktop-file-utils
|
2023-10-09 19:29:22 +00:00
|
|
|
gobject-introspection
|
2023-03-27 19:17:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
glib-networking
|
2023-04-12 12:48:02 +00:00
|
|
|
gtksourceview5
|
2023-03-27 19:17:25 +00:00
|
|
|
json-glib
|
|
|
|
libxml2
|
|
|
|
libgee
|
2023-04-12 12:48:02 +00:00
|
|
|
libsoup_3
|
2023-03-27 19:17:25 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libsecret
|
2023-05-24 13:37:59 +00:00
|
|
|
libwebp
|
2023-08-04 22:07:22 +00:00
|
|
|
libspelling
|
2023-03-27 19:17:25 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-libav
|
|
|
|
gst-plugins-base
|
|
|
|
(gst-plugins-good.override { gtkSupport = true; })
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=int-conversion";
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
passthru = {
|
2023-08-04 22:07:22 +00:00
|
|
|
updateScript = nix-update-script { };
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Browse the Fediverse";
|
|
|
|
homepage = "https://tuba.geopjr.dev/";
|
2023-04-12 12:48:02 +00:00
|
|
|
mainProgram = "dev.geopjr.Tuba";
|
2023-03-27 19:17:25 +00:00
|
|
|
license = licenses.gpl3Only;
|
2023-04-12 12:48:02 +00:00
|
|
|
changelog = "https://github.com/GeopJr/Tuba/releases/tag/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ chuangzhu aleksana ];
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
}
|