From 91b699c4dc5dab46ffae042496356c9938d88113 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Mon, 8 May 2023 14:00:01 +1000 Subject: [PATCH] spotify: allow overriding any args Fixes #227449 --- pkgs/applications/audio/spotify/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix index cc12846a93f..398d3a6ad97 100644 --- a/pkgs/applications/audio/spotify/default.nix +++ b/pkgs/applications/audio/spotify/default.nix @@ -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; })