diff --git a/pkgs/by-name/pi/pixinsight/package.nix b/pkgs/by-name/pi/pixinsight/package.nix index e99644972074..6f520ddc37bf 100644 --- a/pkgs/by-name/pi/pixinsight/package.nix +++ b/pkgs/by-name/pi/pixinsight/package.nix @@ -2,8 +2,7 @@ lib, callPackage, buildFHSEnv, - config, - cudaSupport ? config.cudaSupport, + extraPkgs ? pkgs: [ ], # extra packages to add to targetPkgs # Provide support for built-in self-updates and plugin management # @@ -37,7 +36,8 @@ buildFHSEnv { targetPkgs = pkgs: - (with pkgs; [ + with pkgs; + [ expat glib zlib @@ -93,13 +93,8 @@ buildFHSEnv { libxcb-render-util libxcb-wm # libxcb-cursor # Bundled by PixInsight - ]) - ++ lib.optionals cudaSupport ( - with pkgs.cudaPackages; - [ - cudatoolkit - ] - ); + ] + ++ extraPkgs pkgs; extraInstallCommands = '' # Provide second binary matching upstream CLI command (`PixInsight`)