diff options
Diffstat (limited to 'pkgs/test')
-rw-r--r-- | pkgs/test/cuda/cuda-samples/generic.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/test/cuda/cuda-samples/generic.nix b/pkgs/test/cuda/cuda-samples/generic.nix index 94d96fc4f1aa6..e88d7b0c31591 100644 --- a/pkgs/test/cuda/cuda-samples/generic.nix +++ b/pkgs/test/cuda/cuda-samples/generic.nix @@ -1,5 +1,6 @@ { lib , backendStdenv +, cmake , fetchFromGitHub , fetchpatch , autoAddOpenGLRunpathHook @@ -21,7 +22,20 @@ backendStdenv.mkDerivation (finalAttrs: { inherit sha256; }; - nativeBuildInputs = [ pkg-config autoAddOpenGLRunpathHook glfw3 freeimage ]; + nativeBuildInputs = [ + pkg-config + autoAddOpenGLRunpathHook + glfw3 + freeimage + ] + # CMake has to run as a native, build-time dependency for libNVVM samples. + ++ lib.lists.optionals (lib.strings.versionAtLeast finalAttrs.version "12.2") [ + cmake + ]; + + # CMake is not the primary build tool -- that's still make. + # As such, we disable CMake's build system. + dontUseCmakeConfigure = true; buildInputs = [ cudatoolkit ]; |