summaryrefslogtreecommitdiffstats
path: root/pkgs/development/cuda-modules/cuda-samples/extension.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/cuda-modules/cuda-samples/extension.nix')
-rw-r--r--pkgs/development/cuda-modules/cuda-samples/extension.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/cuda-modules/cuda-samples/extension.nix b/pkgs/development/cuda-modules/cuda-samples/extension.nix
index d41da90cd5d0..0a8a3f9ff6ea 100644
--- a/pkgs/development/cuda-modules/cuda-samples/extension.nix
+++ b/pkgs/development/cuda-modules/cuda-samples/extension.nix
@@ -1,7 +1,7 @@
{
cudaVersion,
- hostPlatform,
lib,
+ stdenv,
}:
let
cudaVersionToHash = {
@@ -23,6 +23,8 @@ let
"12.3" = "sha256-fjVp0G6uRCWxsfe+gOwWTN+esZfk0O5uxS623u0REAk=";
};
+ inherit (stdenv) hostPlatform;
+
# Samples are built around the CUDA Toolkit, which is not available for
# aarch64. Check for both CUDA version and platform.
cudaVersionIsSupported = cudaVersionToHash ? ${cudaVersion};