From 49ec969b5be164cc6d57b3c9fb0f6cb4288655e9 Mon Sep 17 00:00:00 2001 From: Yeongrok Gim Date: Thu, 11 Jul 2024 14:15:33 +0900 Subject: [PATCH] fix cuda_gdb for libexpat.so.1 on aarch64 --- pkgs/development/cuda-modules/cuda/overrides.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/cuda-modules/cuda/overrides.nix b/pkgs/development/cuda-modules/cuda/overrides.nix index 46e4401f6a26..3970830e7567 100644 --- a/pkgs/development/cuda-modules/cuda/overrides.nix +++ b/pkgs/development/cuda-modules/cuda/overrides.nix @@ -156,13 +156,17 @@ filterAndCreateOverrides { { cudaAtLeast, gmp, + expat, + stdenv, lib, }: prevAttrs: { buildInputs = prevAttrs.buildInputs # x86_64 only needs gmp from 12.0 and on - ++ lib.lists.optionals (cudaAtLeast "12.0") [ gmp ]; + ++ lib.lists.optionals (cudaAtLeast "12.0") [ gmp ] + # aarch64,sbsa needs expat + ++ lib.lists.optionals (stdenv.hostPlatform.isAarch64) [ expat ]; }; cuda_nvcc =