Files
nixpkgs/pkgs/by-name/sp/spotify/darwin.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.2 KiB
Nix

{
stdenv,
pname,
meta,
fetchurl,
undmg,
updateScript,
lib,
}:
stdenv.mkDerivation {
inherit pname;
version = "1.2.72.438";
src =
# WARNING: This Wayback Machine URL redirects to the closest timestamp.
# Future maintainers must manually check the timestamp exists and exactly matches at:
# https://web.archive.org/web/*/https://download.scdn.co/SpotifyARM64.dmg
# https://web.archive.org/web/*/https://download.scdn.co/Spotify.dmg
if stdenv.hostPlatform.isAarch64 then
(fetchurl {
url = "https://web.archive.org/web/20250912003756/https://download.scdn.co/SpotifyARM64.dmg";
hash = "sha256-K+dwlT4hd/SWbQT23ESZY8gGQ8bf5x5CpepMz5Wd6Ng=";
})
else
(fetchurl {
url = "https://web.archive.org/web/20250912003614/https://download.scdn.co/Spotify.dmg";
hash = "sha256-qGoU8wWfuGvAZR4/998kvoPTqkaJPHASTRyZL8Kitzs=";
});
nativeBuildInputs = [ undmg ];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r *.app $out/Applications
runHook postInstall
'';
passthru = { inherit updateScript; };
meta = meta // {
maintainers = with lib.maintainers; [
matteopacini
Enzime
];
};
}