2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, callPackage
|
|
|
|
, ...
|
|
|
|
}@args:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2023-05-24 13:37:59 +00:00
|
|
|
extraArgs = removeAttrs args [ "callPackage" ];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pname = "spotify";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.spotify.com/";
|
|
|
|
description = "Play music from the Spotify music service";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfree;
|
2023-04-29 16:46:19 +00:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "spotify";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
in if stdenv.isDarwin
|
2023-05-24 13:37:59 +00:00
|
|
|
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
|
|
|
|
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })
|