Skip to content

Commit

Permalink
openai-whisper-cpp: fix cuda build
Browse files Browse the repository at this point in the history
  • Loading branch information
hughobrien committed Jan 24, 2024
1 parent e5f115b commit ee7bd56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/audio/openai-whisper-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, SDL2
, makeWrapper
, wget
, which
, Accelerate
, CoreGraphics
, CoreML
Expand Down Expand Up @@ -39,6 +40,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
patches = [ ./download-models.patch ];

nativeBuildInputs = [
which
makeWrapper
] ++ lib.optionals cudaSupport ( with cudaPackages ;[
cuda_nvcc
Expand All @@ -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
Expand Down

0 comments on commit ee7bd56

Please sign in to comment.