From 369cbd4e50b37fbdee65737b7d9c8d8b807e0817 Mon Sep 17 00:00:00 2001 From: kulczwoj Date: Mon, 28 Sep 2026 14:24:44 +0200 Subject: [PATCH] pixinsight: drop cudaSupport, add extraPkgs Drop cudaSupport: since 1.9.5 bundled modules don't need any extra packages for CUDA support, so cudatoolkit in targetPkgs is not needed for built-in functionality Add more flexible extraPkgs to extend targetPkgs instead: some third-party plugins do need extra libraries in FHS env (e.g. RC Astro plugins need cuda_nvrtc for GPU acceleration) --- pkgs/by-name/pi/pixinsight/package.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/pi/pixinsight/package.nix b/pkgs/by-name/pi/pixinsight/package.nix index e99644972074a..6f520ddc37bf9 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`)