depot/third_party/nixpkgs/pkgs/applications/audio/spotify/darwin.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

37 lines
780 B
Nix

{ stdenv
, pname
, meta
, fetchurl
, undmg
, lib
}:
stdenv.mkDerivation {
inherit pname;
version = "1.2.15.828.g79f41970";
src = if stdenv.isAarch64 then (
fetchurl {
url = "https://web.archive.org/web/20230710021420/https://download.scdn.co/SpotifyARM64.dmg";
sha256 = "sha256-1X0Mln47uYs5l1t+5BFBk5lLnXZgnSqZLX41yA91I0s=";
})
else (
fetchurl {
url = "https://web.archive.org/web/20230710021726/https://download.scdn.co/Spotify.dmg";
sha256 = "sha256-CmKZx8Ad0w6STBN0O4Sc4XqidOM6fCl74u2sI8w+Swk=";
});
nativeBuildInputs = [ undmg ];
sourceRoot = ".";
installPhase = ''
mkdir -p $out/Applications
cp -r *.app $out/Applications
'';
meta = meta // {
maintainers = with lib.maintainers; [ Enzime ];
};
}