1{
2 lib,
3 stdenv,
4 callPackage,
5 ...
6}@args:
7
8let
9 extraArgs = removeAttrs args [ "callPackage" ];
10
11 pname = "spotify";
12
13 updateScript = ./update.sh;
14
15 meta = with lib; {
16 homepage = "https://www.spotify.com/";
17 description = "Play music from the Spotify music service";
18 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
19 license = licenses.unfree;
20 platforms = [
21 "x86_64-linux"
22 "x86_64-darwin"
23 "aarch64-darwin"
24 ];
25 mainProgram = "spotify";
26 };
27
28in
29if stdenv.hostPlatform.isDarwin then
30 callPackage ./darwin.nix (extraArgs // { inherit pname updateScript meta; })
31else
32 callPackage ./linux.nix (extraArgs // { inherit pname updateScript meta; })