Merge pull request #230609 from Enzime/fix/spotify-override-args
spotify: allow overriding any args
This commit is contained in:
commit
dca1f561a9
|
@ -1,6 +1,12 @@
|
||||||
{ lib, stdenv, callPackage }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, callPackage
|
||||||
|
, ...
|
||||||
|
}@args:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
extraArgs = removeAttrs args [ "callPackage" ];
|
||||||
|
|
||||||
pname = "spotify";
|
pname = "spotify";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -12,5 +18,5 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
in if stdenv.isDarwin
|
in if stdenv.isDarwin
|
||||||
then callPackage ./darwin.nix { inherit pname meta; }
|
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
|
||||||
else callPackage ./linux.nix { inherit pname meta; }
|
else callPackage ./linux.nix (extraArgs // { inherit pname meta; })
|
||||||
|
|
Loading…
Reference in a new issue