mpris-timer: 1.1.1 -> 1.5 (#363042)

This commit is contained in:
Felix Bühler 2024-12-09 00:03:45 +01:00 committed by GitHub
commit 51efc5d161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +1,28 @@
{
lib,
alsa-lib,
buildGoModule,
fetchFromGitHub,
pkg-config,
glib,
wrapGAppsHook4,
alsa-lib,
gobject-introspection,
gtk4,
libadwaita,
nix-update-script,
pkg-config,
wrapGAppsHook4,
}:
buildGoModule rec {
pname = "mpris-timer";
version = "1.1.1";
version = "1.5";
src = fetchFromGitHub {
owner = "efogdev";
repo = "mpris-timer";
rev = "refs/tags/${version}";
hash = "sha256-Ak9DASAfW+dOhfbQDRAZJ1YD8j5Fcpz05jlXlUG1ydo=";
hash = "sha256-drp/JB7C1MMEOWbZUmrFtaEDRpgf90MSR6dFqdagCpI=";
};
vendorHash = "sha256-APcQgNEn7ULIjBk7f4q6MMSX9k58+F7vzgUDiIZ3Jxc=";
strictDeps = true;
@ -42,11 +44,14 @@ buildGoModule rec {
"-s"
"-w"
];
tags = [
"wayland"
];
postInstall = ''
mv $out/bin/cmd $out/bin/mpris-timer
install -Dm644 internal/ui/res/icon.svg $out/share/icons/hicolor/scalable/apps/io.github.efogdev.mpris-timer.svg
install -Dm644 misc/io.github.efogdev.mpris-timer.desktop -t $out/share/applications
install -Dm644 misc/io.github.efogdev.mpris-timer.metainfo.xml -t $out/share/metainfo
@ -54,6 +59,10 @@ buildGoModule rec {
glib-compile-schemas $out/share/glib-2.0/schemas
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Timer app with seamless GNOME integration";
homepage = "https://github.com/efogdev/mpris-timer";
@ -63,5 +72,7 @@ buildGoModule rec {
getchoo
];
mainProgram = "mpris-timer";
# Always uses ALSA
platforms = lib.platforms.linux;
};
}