spotify: set passthru.updateScript

This commit is contained in:
Michael Hoang
2025-05-22 21:53:15 +10:00
parent 2795c506fe
commit d1578f3c7e
3 changed files with 14 additions and 3 deletions
+7 -1
View File
@@ -4,6 +4,7 @@
meta,
fetchurl,
undmg,
updateScript,
lib,
}:
@@ -37,7 +38,12 @@ stdenv.mkDerivation {
runHook postInstall
'';
passthru = { inherit updateScript; };
meta = meta // {
maintainers = with lib.maintainers; [ matteopacini ];
maintainers = with lib.maintainers; [
matteopacini
Enzime
];
};
}
+3
View File
@@ -44,6 +44,7 @@
# High-DPI support: Spotify's --force-device-scale-factor argument
# not added if `null`, otherwise, should be a number.
deviceScaleFactor ? null,
updateScript,
}:
let
@@ -227,6 +228,8 @@ stdenv.mkDerivation {
runHook postFixup
'';
passthru = { inherit updateScript; };
meta = meta // {
maintainers = with lib.maintainers; [
ftrvxmtrx
+4 -2
View File
@@ -10,6 +10,8 @@ let
pname = "spotify";
updateScript = ./update.sh;
meta = with lib; {
homepage = "https://www.spotify.com/";
description = "Play music from the Spotify music service";
@@ -25,6 +27,6 @@ let
in
if stdenv.hostPlatform.isDarwin then
callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
callPackage ./darwin.nix (extraArgs // { inherit pname updateScript meta; })
else
callPackage ./linux.nix (extraArgs // { inherit pname meta; })
callPackage ./linux.nix (extraArgs // { inherit pname updateScript meta; })