mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 15:11:30 +00:00
terra: remove cudatoolkit
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
@@ -8,7 +9,7 @@
|
||||
libxml2,
|
||||
symlinkJoin,
|
||||
cudaPackages,
|
||||
enableCUDA ? false,
|
||||
enableCUDA ? config.cudaSupport,
|
||||
libffi,
|
||||
libpfm,
|
||||
}:
|
||||
@@ -37,8 +38,6 @@ let
|
||||
];
|
||||
};
|
||||
|
||||
cuda = cudaPackages.cudatoolkit;
|
||||
|
||||
clangVersion = llvmPackages.clang-unwrapped.version;
|
||||
|
||||
in
|
||||
@@ -60,7 +59,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libffi
|
||||
libxml2
|
||||
]
|
||||
++ lib.optionals enableCUDA [ cuda ]
|
||||
++ lib.optionals enableCUDA (with cudaPackages; [
|
||||
cuda_nvcc
|
||||
cuda_cudart
|
||||
])
|
||||
++ lib.optional (!stdenv.hostPlatform.isDarwin) libpfm;
|
||||
|
||||
cmakeFlags =
|
||||
|
||||
Reference in New Issue
Block a user