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