94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
22 lines
576 B
Nix
22 lines
576 B
Nix
{ lib
|
|
, stdenv
|
|
, callPackage
|
|
, ...
|
|
}@args:
|
|
|
|
let
|
|
extraArgs = removeAttrs args [ "callPackage" ];
|
|
|
|
pname = "spotify";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.spotify.com/";
|
|
description = "Play music from the Spotify music service";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfree;
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
};
|
|
|
|
in if stdenv.isDarwin
|
|
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
|
|
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })
|