cudaPackages_11_8.cudatoolkit: remove broken include/include symlink

The broken symlink was causing tensorflow to fail to build.
This commit is contained in:
Connor Baker 2023-05-25 00:37:03 -04:00
parent 178b88e3ae
commit bbe6b21356

View file

@ -291,6 +291,10 @@ backendStdenv.mkDerivation rec {
'' + lib.optionalString (lib.versionOlder version "8.0") ''
# Hack to fix building against recent Glibc/GCC.
echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
''
# 11.8 includes a broken symlink, include/include, pointing to targets/x86_64-linux/include
+ lib.optionalString (lib.versions.majorMinor version == "11.8") ''
rm $out/include/include
'' + ''
runHook postInstall
'';