cudaPackages.tensorrt: don't remove win libs for 10.2

Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
Connor Baker
2026-01-10 22:02:50 +00:00
parent 6b45e4200a
commit 1f931d0673
@@ -12,7 +12,7 @@
let
inherit (backendStdenv) cudaCapabilities hostRedistSystem;
inherit (lib.lists) optionals;
inherit (lib.strings) concatStringsSep;
inherit (lib.strings) concatStringsSep optionalString;
in
buildRedist (
finalAttrs:
@@ -133,7 +133,8 @@ buildRedist (
moveToOutput data "''${!outputSamples:?}"
''
# Remove the Windows library used for cross-compilation if it exists.
+ ''
# NOTE: These are not removed for TensorRT 10.2 since the samples (and presumably others) try to load them.
+ optionalString (lib.versions.majorMinor finalAttrs.version != "10.2") ''
nixLog "removing any Windows libraries"
for winLib in "''${!outputLib:?}/lib/"*_win*; do
rm --verbose "$winLib"