mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
Merge pull request #283393 from hughobrien/openai-whisper-cpp--cuda-fix
openai-whisper-cpp: fix cuda build
This commit is contained in:
commit
43a713f106
@ -4,6 +4,7 @@
|
||||
, SDL2
|
||||
, makeWrapper
|
||||
, wget
|
||||
, which
|
||||
, Accelerate
|
||||
, CoreGraphics
|
||||
, CoreML
|
||||
@ -39,6 +40,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
patches = [ ./download-models.patch ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
which
|
||||
makeWrapper
|
||||
] ++ lib.optionals cudaSupport ( with cudaPackages ;[
|
||||
cuda_nvcc
|
||||
@ -60,6 +62,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# A temporary hack for reducing the closure size, remove once cudaPackages
|
||||
# have stopped using lndir: https://github.com/NixOS/nixpkgs/issues/271792
|
||||
cuda_cccl.dev # provides nv/target
|
||||
cuda_cudart.dev
|
||||
cuda_cudart.lib
|
||||
cuda_cudart.static
|
||||
|
Loading…
Reference in New Issue
Block a user