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