7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
23 lines
618 B
Nix
23 lines
618 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" ];
|
|
mainProgram = "spotify";
|
|
};
|
|
|
|
in if stdenv.hostPlatform.isDarwin
|
|
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
|
|
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })
|