btop: enable nvidia gpu support
This commit is contained in:
parent
cf792a51c8
commit
7bb7c3079b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue