From 7bb7c3079b9e7fa376a3faabf9b62026b7a1bad6 Mon Sep 17 00:00:00 2001 From: natsukium Date: Wed, 24 Jan 2024 22:12:20 +0900 Subject: [PATCH] btop: enable nvidia gpu support --- pkgs/tools/system/btop/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix index 47d0808c4903..b95fdc7578a2 100644 --- a/pkgs/tools/system/btop/default.nix +++ b/pkgs/tools/system/btop/default.nix @@ -1,4 +1,5 @@ { lib +, config , stdenv , fetchFromGitHub , cmake @@ -6,6 +7,8 @@ , removeReferencesTo , btop , testers +, cudaSupport ? config.cudaSupport +, cudaPackages }: stdenv.mkDerivation rec { @@ -19,7 +22,9 @@ stdenv.mkDerivation rec { hash = "sha256-QQM2/LO/EHovhj+S+4x3ro/aOVrtuxteVVvYAd6feTk="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake ] ++ lib.optionals cudaSupport [ + cudaPackages.autoAddOpenGLRunpathHook + ]; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk_11_0.frameworks.CoreFoundation