about summary refs log tree commit diff
path: root/pkgs/tools/audio/openai-whisper-cpp
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2024-03-30 11:06:48 -0700
committerJonathan Ringer <jonringer117@gmail.com>2024-04-01 09:50:49 -0700
commitf47f68a7fb0428f1133fcf38fddc2fb617555fe4 (patch)
tree923c46cdf0b86be0099750b0ee042d53c2621722 /pkgs/tools/audio/openai-whisper-cpp
parent126759eb5886b953adccc5cc471f5193da66e27a (diff)
openai-whisper-cpp: use pkgs.autoAddDriverRunpath
Diffstat (limited to 'pkgs/tools/audio/openai-whisper-cpp')
-rw-r--r--pkgs/tools/audio/openai-whisper-cpp/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/audio/openai-whisper-cpp/default.nix b/pkgs/tools/audio/openai-whisper-cpp/default.nix
index 20d2a23d1dd58..ab1cbb77e97bb 100644
--- a/pkgs/tools/audio/openai-whisper-cpp/default.nix
+++ b/pkgs/tools/audio/openai-whisper-cpp/default.nix
@@ -12,6 +12,7 @@
 , MetalKit
 
 , config
+, autoAddDriverRunpath
 , cudaSupport ? config.cudaSupport
 , cudaPackages ? {}
 }:
@@ -42,11 +43,10 @@ effectiveStdenv.mkDerivation (finalAttrs: {
   nativeBuildInputs = [
       which
       makeWrapper
-    ] ++ lib.optionals cudaSupport ( with cudaPackages ;[
-      cuda_nvcc
-
+    ] ++ lib.optionals cudaSupport [
+      cudaPackages.cuda_nvcc
       autoAddDriverRunpath
-    ]);
+    ];
 
   buildInputs = [
       SDL2