blob: 8304bdf3a15d98c4d62c78530e6486d3b342ac08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv
, pname
, meta
, fetchurl
, undmg
, lib
}:
stdenv.mkDerivation {
inherit pname;
version = "1.2.40.599.g606b7f29";
src = if stdenv.isAarch64 then (
fetchurl {
url = "https://web.archive.org/web/20240622065234/https://download.scdn.co/SpotifyARM64.dmg";
hash = "sha256-mmjxKYmsX0rFlIU19JOfPbNgOhlcZs5slLUhDhlON1c=";
})
else (
fetchurl {
url = "https://web.archive.org/web/20240622065548/https://download.scdn.co/Spotify.dmg";
hash = "sha256-hvS0xnmJQoQfNJRFsLBQk8AJjDOzDy+OGwNOq5Ms/O0=";
});
nativeBuildInputs = [ undmg ];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r *.app $out/Applications
runHook postInstall
'';
meta = meta // {
maintainers = with lib.maintainers; [ matteopacini ];
};
}
|