3
0
Fork 0
forked from mirrors/nixpkgs

spotify: allow overriding any args

Fixes #227449
This commit is contained in:
Michael Hoang 2023-05-08 14:00:01 +10:00 committed by Weijia Wang
parent f3e3c94786
commit 91b699c4dc

View file

@ -1,6 +1,12 @@
{ lib, stdenv, callPackage }:
{ lib
, stdenv
, callPackage
, ...
}@args:
let
extraArgs = removeAttrs args [ "callPackage" ];
pname = "spotify";
meta = with lib; {
@ -12,5 +18,5 @@ let
};
in if stdenv.isDarwin
then callPackage ./darwin.nix { inherit pname meta; }
else callPackage ./linux.nix { inherit pname meta; }
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })