Merge pull request #321736 from Aleksanaa/tuba

tuba: 0.7.2 -> 0.8.1
This commit is contained in:
Aleksana 2024-06-24 12:26:00 +08:00 committed by GitHub
commit 6408e36c20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,17 +23,22 @@
, libspelling
, icu
, gst_all_1
, clapper
# clapper support is still experimental and has bugs.
# See https://github.com/GeopJr/Tuba/pull/931
, clapperSupport? false
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "tuba";
version = "0.7.2";
version = "0.8.1";
src = fetchFromGitHub {
owner = "GeopJr";
repo = "Tuba";
rev = "v${version}";
hash = "sha256-PRbepitFSvdw/7y5VlnSdsQwnlTQg4ktM4t1/x6SmAY=";
hash = "sha256-dN915sPBttnrcOuhUJjEtdojOQi9VRLmc+t1RvWmx64=";
};
nativeBuildInputs = [
@ -67,7 +72,13 @@ stdenv.mkDerivation rec {
gst-plugins-base
(gst-plugins-good.override { gtkSupport = true; })
gst-plugins-bad
]);
]) ++ lib.optionals clapperSupport [
clapper
];
mesonFlags = [
(lib.mesonBool "clapper" clapperSupport)
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=int-conversion";
@ -75,12 +86,12 @@ stdenv.mkDerivation rec {
updateScript = nix-update-script { };
};
meta = with lib; {
meta = {
description = "Browse the Fediverse";
homepage = "https://tuba.geopjr.dev/";
mainProgram = "dev.geopjr.Tuba";
license = licenses.gpl3Only;
license = lib.licenses.gpl3Only;
changelog = "https://github.com/GeopJr/Tuba/releases/tag/v${version}";
maintainers = with maintainers; [ chuangzhu aleksana ];
maintainers = with lib.maintainers; [ chuangzhu aleksana ];
};
}