cudaPackages: add cudaOlder and cudaAtLeast comparators

This commit is contained in:
Jonathan Ringer 2024-01-03 15:36:29 -08:00 committed by Jonathan Ringer
parent fb0086d66b
commit b02dbb03fb

View File

@ -48,6 +48,8 @@ let
inherit gpus nvccCompatibilities flags;
cudaMajorVersion = versions.major cudaVersion;
cudaMajorMinorVersion = versions.majorMinor cudaVersion;
cudaOlder = strings.versionOlder cudaVersion;
cudaAtLeast = strings.versionAtLeast cudaVersion;
# Maintain a reference to the final cudaPackages.
# Without this, if we use `final.callPackage` and a package accepts `cudaPackages` as an argument,