1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/audio/spotify/darwin.nix
Yomi Ikuru 2309b354bf
spotify: 1.2.38.720.ga4a70a0e -> 1.2.40.599.g606b7f29
Co-authored-by: Martin Joerg <martin.joerg@gmail.com>
2024-06-22 10:02:52 +01:00

42 lines
825 B
Nix

{ 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; [ Enzime ];
};
}