Commit ac8ee551 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

saga: fix build with cudaSupport

parent e53d27e5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  config,
  fetchurl,

  # nativeBuildInputs
@@ -8,6 +9,8 @@
  dos2unix,
  pkg-config,
  wrapGAppsHook3,
  # cuda-specific
  cudaPackages,
  # darwin-specific
  desktopToDarwinBundle,

@@ -34,6 +37,8 @@
  poppler,
  sqlite,
  unixODBC,

  cudaSupport ? config.cudaSupport,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -57,6 +62,9 @@ stdenv.mkDerivation (finalAttrs: {
    pkg-config
    wrapGAppsHook3
  ]
  ++ lib.optionals cudaSupport [
    cudaPackages.cuda_nvcc
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    desktopToDarwinBundle
  ];