-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a95f3f
commit db96548
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
}; | ||
} |