From 2ef48c49a534cf0c7445e3385f000fa72cff5abf Mon Sep 17 00:00:00 2001 From: Dessix Date: Sat, 17 Jun 2023 17:29:14 -0700 Subject: [PATCH] cudaPackages_12_1.cudatoolkit: fix missing build dependencies Dependencies on gstreamer and curl were added starting in cudatoolkit 12.1; this compensates for the resulting autoPatchelf failures. --- .../compilers/cudatoolkit/common.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/cudatoolkit/common.nix b/pkgs/development/compilers/cudatoolkit/common.nix index 55d7e2fb64cd..f16eb7f982f2 100644 --- a/pkgs/development/compilers/cudatoolkit/common.nix +++ b/pkgs/development/compilers/cudatoolkit/common.nix @@ -9,6 +9,7 @@ args@ , autoAddOpenGLRunpathHook , addOpenGLRunpath , alsa-lib +, curlMinimal , expat , fetchurl , fontconfig @@ -16,6 +17,7 @@ args@ , gdk-pixbuf , glib , glibc +, gst_all_1 , gtk2 , lib , libxkbcommon @@ -129,7 +131,22 @@ backendStdenv.mkDerivation rec { ucx xorg.libxshmfence xorg.libxkbfile - ]; + ] ++ lib.optionals (lib.versionAtLeast version "12.1") (map lib.getLib [ + # Used by `/target-linux-x64/CollectX/clx` and `/target-linux-x64/CollectX/libclx_api.so` for: + # - `libcurl.so.4` + curlMinimal + + # Used by `/target-linux-x64/libQt6Multimedia.so.6` for: + # - `libgstaudio-1.0.so.0` + # - `libgstvideo-1.0.so.0` + # - `libgstpbutils-1.0.so.0` + # - `libgstallocators-1.0.so.0` + # - `libgstapp-1.0.so.0` + # - `libgstbase-1.0.so.0` + # - `libgstreamer-1.0.so.0` + gst_all_1.gstreamer + gst_all_1.gst-plugins-base + ]); # Prepended to runpaths by autoPatchelf. # The order inherited from older rpath preFixup code