btop: enable nvidia gpu support

This commit is contained in:
natsukium 2024-01-24 22:12:20 +09:00
parent cf792a51c8
commit 7bb7c3079b
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -1,4 +1,5 @@
{ lib { lib
, config
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
@ -6,6 +7,8 @@
, removeReferencesTo , removeReferencesTo
, btop , btop
, testers , testers
, cudaSupport ? config.cudaSupport
, cudaPackages
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -19,7 +22,9 @@ stdenv.mkDerivation rec {
hash = "sha256-QQM2/LO/EHovhj+S+4x3ro/aOVrtuxteVVvYAd6feTk="; hash = "sha256-QQM2/LO/EHovhj+S+4x3ro/aOVrtuxteVVvYAd6feTk=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ] ++ lib.optionals cudaSupport [
cudaPackages.autoAddOpenGLRunpathHook
];
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.CoreFoundation darwin.apple_sdk_11_0.frameworks.CoreFoundation