0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Merge pull request #281806 from ConnorBaker/fix/cudaPackages-multiplex-builder-isSupported-check

cudaPackages: fix multiplex builder isSupported check
This commit is contained in:
Someone 2024-01-19 23:57:35 +00:00 committed by GitHub
commit 8da872fefa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,11 +63,12 @@ let
# computeName :: Package -> String
computeName = {version, ...}: mkVersionedPackageName pname version;
# Check whether a package supports our CUDA version
# Check whether a package supports our CUDA version and platform.
# isSupported :: Package -> Bool
isSupported =
package:
!(strings.hasPrefix "unsupported" package.platform)
# The `platform` attribute of the package is NVIDIA's name for a redistributable architecture.
redistArch == package.platform
&& strings.versionAtLeast cudaVersion package.minCudaVersion
&& strings.versionAtLeast package.maxCudaVersion cudaVersion;