From ae0678af25049f75e8f956d601c6b7049651b6ee Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Thu, 2 Jan 2025 11:53:41 +0800 Subject: [PATCH] resources: show Nvidia GPU info Previously, resources failed to show Nvidia GPU info because it failed to load libnvidia-ml.so. ```console $ RUST_LOG=resources=debug resources ... WARN resources::utils::gpu::nvidia > Connection to NVML failed, reason: a libloading error occurred: libnvidia-ml.so: cannot open shared object file: No such file or directory ... ``` --- pkgs/by-name/re/resources/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/re/resources/package.nix b/pkgs/by-name/re/resources/package.nix index d196fbc6bfb50..9f70e2c1325ae 100644 --- a/pkgs/by-name/re/resources/package.nix +++ b/pkgs/by-name/re/resources/package.nix @@ -2,6 +2,7 @@ , stdenv , fetchFromGitHub , appstream-glib +, autoAddDriverRunpath , cargo , desktop-file-utils , meson @@ -37,6 +38,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ appstream-glib + autoAddDriverRunpath desktop-file-utils meson ninja