mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
24 lines
605 B
Nix
24 lines
605 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.isDarwin
|
|
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
|
|
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })
|