openai-whisper-cpp: use pkgs.autoAddDriverRunpath

This commit is contained in:
Jonathan Ringer 2024-03-30 11:06:48 -07:00
parent 126759eb58
commit f47f68a7fb
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
1 changed files with 4 additions and 4 deletions

View File

@ -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