Skip to content

Commit 473538c

Browse files
authored
mpris-timer: 2.1.1 -> 2.2.2 (NixOS#453718)
2 parents cdec2bc + 203f135 commit 473538c

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

pkgs/by-name/mp/mpris-timer/package.nix

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@
1212
wrapGAppsHook4,
1313
}:
1414

15-
buildGoModule rec {
15+
buildGoModule (finalAttrs: {
1616
pname = "mpris-timer";
17-
version = "2.1.1";
17+
version = "2.2.2";
1818

1919
src = fetchFromGitHub {
2020
owner = "efogdev";
2121
repo = "mpris-timer";
22-
tag = version;
23-
hash = "sha256-uFQJSKQ9k0fiOhzydJ7frs2kns9pSdZGILPGCW3QA1w=";
22+
tag = finalAttrs.version;
23+
hash = "sha256-JuOBLm7+/zOSNhH+sBqvUQV0+AhTAmr+UxhPFtt0NU8=";
2424
};
2525

26-
vendorHash = "sha256-vCzQiQsljNyI7nBYvq+C/dv0T186Lsj7rOq5xHMs3c0=";
27-
28-
strictDeps = true;
26+
vendorHash = "sha256-Htni2cMc1vYewVL8oOXL2gPS4h+S3d5y4i5yAZdqFJo=";
2927

3028
nativeBuildInputs = [
3129
pkg-config
@@ -45,23 +43,18 @@ buildGoModule rec {
4543
"-w"
4644
];
4745

48-
tags = [
49-
"wayland"
50-
];
46+
tags = [ "wayland" ];
5147

5248
postInstall = ''
53-
mv $out/bin/cmd $out/bin/mpris-timer
54-
49+
mv $out/bin/{cmd,mpris-timer}
5550
install -Dm644 internal/ui/res/icon.svg $out/share/icons/hicolor/scalable/apps/io.github.efogdev.mpris-timer.svg
5651
install -Dm644 misc/io.github.efogdev.mpris-timer.desktop -t $out/share/applications
5752
install -Dm644 misc/io.github.efogdev.mpris-timer.metainfo.xml -t $out/share/metainfo
5853
install -Dm644 misc/io.github.efogdev.mpris-timer.gschema.xml -t $out/share/glib-2.0/schemas
5954
glib-compile-schemas $out/share/glib-2.0/schemas
6055
'';
6156

62-
passthru = {
63-
updateScript = nix-update-script { };
64-
};
57+
passthru.updateScript = nix-update-script { };
6558

6659
meta = {
6760
description = "Timer app with seamless GNOME integration";
@@ -72,7 +65,6 @@ buildGoModule rec {
7265
getchoo
7366
];
7467
mainProgram = "mpris-timer";
75-
# Always uses ALSA
76-
platforms = lib.platforms.linux;
68+
platforms = lib.platforms.linux; # Always uses ALSA
7769
};
78-
}
70+
})

0 commit comments

Comments
 (0)