From db96548c0a8e94a011177361d856d2a1cd87a668 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Wed, 13 Nov 2024 22:39:55 +0100 Subject: [PATCH] mpris-timer: init at 1.0.2 --- pkgs/by-name/mp/mpris-timer/package.nix | 59 +++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pkgs/by-name/mp/mpris-timer/package.nix diff --git a/pkgs/by-name/mp/mpris-timer/package.nix b/pkgs/by-name/mp/mpris-timer/package.nix new file mode 100644 index 00000000000000..71ec4592d5a650 --- /dev/null +++ b/pkgs/by-name/mp/mpris-timer/package.nix @@ -0,0 +1,59 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + pkg-config, + wrapGAppsHook4, + alsa-lib, + gobject-introspection, + gtk4, + libadwaita, +}: + +buildGoModule rec { + pname = "mpris-timer"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "efogdev"; + repo = "mpris-timer"; + rev = version; + hash = "sha256-Ak9DASAfW+dOhfbQDRAZJ1YD8j5Fcpz05jlXlUG1ydo="; + }; + vendorHash = "sha256-APcQgNEn7ULIjBk7f4q6MMSX9k58+F7vzgUDiIZ3Jxc="; + + nativeBuildInputs = [ + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + alsa-lib + gobject-introspection + gtk4 + libadwaita + ]; + + ldflags = [ + "-s" + "-w" + ]; + tags = [ + "wayland" + ]; + + postInstall = '' + 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 + install -Dm644 misc/io.github.efogdev.mpris-timer.gschema.xml -t $out/share/glib-2.0/schemas + glib-compile-schemas $out/share/glib-2.0/schemas + ''; + + meta = with lib; { + description = "Timer app with seamless GNOME integration"; + homepage = "https://github.com/efogdev/mpris-timer"; + license = licenses.mit; + maintainers = with maintainers; [ stunkymonkey ]; + mainProgram = "mpris-timer"; + }; +}