about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2024-01-03 15:36:29 -0800
committerJonathan Ringer <jonringer@users.noreply.github.com>2024-01-03 19:49:28 -0800
commitb02dbb03fbc18c2ad19ba41201c2b3b30f7f7eaa (patch)
treec5a55b568adca41cae614db6b8119e782dca6396 /pkgs
parentfb0086d66b80c1d0bfe6fba9b728ee541715213f (diff)
cudaPackages: add cudaOlder and cudaAtLeast comparators
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/cuda-packages.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/top-level/cuda-packages.nix b/pkgs/top-level/cuda-packages.nix
index d474cf852e55f..9045b5754ab81 100644
--- a/pkgs/top-level/cuda-packages.nix
+++ b/pkgs/top-level/cuda-packages.nix
@@ -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,