nixpkgs/pkgs/applications/audio/spotify/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
576 B
Nix
Raw Normal View History

{ lib
, stdenv
, callPackage
, ...
}@args:
let
extraArgs = removeAttrs args [ "callPackage" ];
2022-11-05 23:28:41 +00:00
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;
2022-10-11 07:41:47 +00:00
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
};
2022-10-11 07:41:47 +00:00
in if stdenv.isDarwin
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })