From ab9c46d27ee48291f4bc7547b3dc1aed1c650334 Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Tue, 4 Apr 2023 18:35:47 +0300 Subject: [PATCH] cudaPackages.cudnn: fix libstdc++ mismatch --- pkgs/development/libraries/science/math/cudnn/generic.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/science/math/cudnn/generic.nix b/pkgs/development/libraries/science/math/cudnn/generic.nix index b2844ae6b074..cdfa924b2242 100644 --- a/pkgs/development/libraries/science/math/cudnn/generic.nix +++ b/pkgs/development/libraries/science/math/cudnn/generic.nix @@ -1,4 +1,4 @@ -{ +{ stdenv, backendStdenv, lib, zlib, @@ -26,7 +26,6 @@ maxCudaVersion, }: assert useCudatoolkitRunfile || (libcublas != null); let - inherit (backendStdenv) cc; inherit (lib) lists strings trivial versions; # majorMinorPatch :: String -> String @@ -63,7 +62,10 @@ in # Used by autoPatchelfHook buildInputs = [ - cc.cc.lib # libstdc++ + # Note this libstdc++ isn't from the (possibly older) nvcc-compatible + # stdenv, but from the (newer) stdenv that the rest of nixpkgs uses + stdenv.cc.cc.lib + zlib cudatoolkit_root ];