2023-04-29 16:46:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, pname
|
|
|
|
, meta
|
|
|
|
, fetchurl
|
|
|
|
, undmg
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname;
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.2.17.834.g26ee1129";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = if stdenv.isAarch64 then (
|
|
|
|
fetchurl {
|
2023-08-22 20:05:09 +00:00
|
|
|
url = "https://web.archive.org/web/20230808124344/https://download.scdn.co/SpotifyARM64.dmg";
|
|
|
|
sha256 = "sha256-u22hIffuCT6DwN668TdZXYedY9PSE7ZnL+ITK78H7FI=";
|
2023-04-29 16:46:19 +00:00
|
|
|
})
|
|
|
|
else (
|
|
|
|
fetchurl {
|
2023-08-22 20:05:09 +00:00
|
|
|
url = "https://web.archive.org/web/20230808124637/https://download.scdn.co/Spotify.dmg";
|
|
|
|
sha256 = "sha256-aaYMbZpa2LvyBeXmEAjrRYfYqbudhJHR/hvCNTsNQmw=";
|
2023-04-29 16:46:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-08-22 20:05:09 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2023-04-29 16:46:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = meta // {
|
|
|
|
maintainers = with lib.maintainers; [ Enzime ];
|
|
|
|
};
|
|
|
|
}
|