2023-05-08 05:00:01 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, callPackage
|
|
|
|
, ...
|
|
|
|
}@args:
|
2018-05-07 13:04:15 +01:00
|
|
|
|
2013-05-02 17:23:10 +01:00
|
|
|
let
|
2023-05-08 05:00:01 +01:00
|
|
|
extraArgs = removeAttrs args [ "callPackage" ];
|
|
|
|
|
2022-11-05 23:28:41 +00:00
|
|
|
pname = "spotify";
|
2011-01-05 23:23:22 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.spotify.com/";
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Play music from the Spotify music service";
|
2022-06-04 23:19:25 +01:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2017-04-16 06:52:23 +01:00
|
|
|
license = licenses.unfree;
|
2022-10-11 08:41:47 +01:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
2023-08-04 16:54:47 +01:00
|
|
|
mainProgram = "spotify";
|
2011-01-05 23:23:22 +00:00
|
|
|
};
|
2022-10-11 08:41:47 +01:00
|
|
|
|
|
|
|
in if stdenv.hostPlatform.isDarwin
|
2023-05-08 05:00:01 +01:00
|
|
|
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
|
|
|
|
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })
|