summaryrefslogtreecommitdiffstats
path: root/pkgs/development/cuda-modules/cuda-library-samples/extension.nix
diff options
context:
space:
mode:
authorConnor Baker <connor.baker@tweag.io>2024-04-18 20:10:59 -0400
committerGitHub <noreply@github.com>2024-04-18 20:10:59 -0400
commitc66994ce1c1d153ac86f37bcc7a0b3b1b3281497 (patch)
tree7ac3dc07c3b8f47ee1d4342e30acc4e12f11efa8 /pkgs/development/cuda-modules/cuda-library-samples/extension.nix
parentcaaff6c448501176ee469f2c5db3203bbc5f5d9a (diff)
parent6208368a822cf27adfc7b743e3be6d96ebe91095 (diff)
Merge pull request #301416 from ConnorBaker/feat/cudaPackages-lessons-learned-from-cross-compilation-attempt
cuda-modules: apply lessons learned from cross-compilation attempts
Diffstat (limited to 'pkgs/development/cuda-modules/cuda-library-samples/extension.nix')
-rw-r--r--pkgs/development/cuda-modules/cuda-library-samples/extension.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/cuda-modules/cuda-library-samples/extension.nix b/pkgs/development/cuda-modules/cuda-library-samples/extension.nix
index 456ab8168a45..1184547c7f93 100644
--- a/pkgs/development/cuda-modules/cuda-library-samples/extension.nix
+++ b/pkgs/development/cuda-modules/cuda-library-samples/extension.nix
@@ -1,5 +1,7 @@
-{ hostPlatform, lib }:
+{ lib, stdenv }:
let
+ inherit (stdenv) hostPlatform;
+
# Samples are built around the CUDA Toolkit, which is not available for
# aarch64. Check for both CUDA version and platform.
platformIsSupported = hostPlatform.isx86_64 && hostPlatform.isLinux;