depot/third_party/nixpkgs/pkgs/applications/misc/tuba/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

84 lines
1.5 KiB
Nix

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