diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-06-13 11:37:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 11:37:12 +0200 |
commit | ddf174183e0378f62f80c7165e74ac45fcbf8924 (patch) | |
tree | 3843451cc9549130d3f33948d4bb183af95ee5b9 /pkgs/development | |
parent | 9183a72d11efb162630e023b17bc0699212735d5 (diff) | |
parent | fe12b14ffdad455de14ca3c696aa510fd10cad7c (diff) | |
download | nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.tar nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.tar.gz nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.tar.bz2 nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.tar.lz nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.tar.xz nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.tar.zst nixlib-ddf174183e0378f62f80c7165e74ac45fcbf8924.zip |
Merge pull request #234731 from aidalgol/gui-apps-with-cuda-fixes
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/mlt/qt-5.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/development/libraries/mlt/qt-5.nix b/pkgs/development/libraries/mlt/qt-5.nix index e993cfcf8ded..dce5f18c4fb6 100644 --- a/pkgs/development/libraries/mlt/qt-5.nix +++ b/pkgs/development/libraries/mlt/qt-5.nix @@ -1,4 +1,5 @@ -{ lib +{ config +, lib , fetchFromGitHub , cmake , SDL @@ -23,6 +24,8 @@ , rubberband , mkDerivation , which +, cudaSupport ? config.cudaSupport or false +, cudaPackages ? {} }: mkDerivation rec { @@ -55,9 +58,17 @@ mkDerivation rec { ladspa-sdk ladspaPlugins rubberband - ]; + ] ++ lib.optionals cudaSupport (with cudaPackages; [ + cuda_cudart + ]); - nativeBuildInputs = [ cmake which pkg-config ]; + nativeBuildInputs = [ + cmake + which + pkg-config + ] ++ lib.optionals cudaSupport (with cudaPackages; [ + cuda_nvcc + ]); outputs = [ "out" "dev" ]; |