mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
nvtop: fix build
Use udev over systemd as recommended with the AppImage build. Fixes #201340
This commit is contained in:
parent
05dd7ec2a3
commit
547f2797b4
@ -8,16 +8,16 @@
|
||||
, ncurses
|
||||
, nvtop
|
||||
, testers
|
||||
, udev
|
||||
, addOpenGLRunpath
|
||||
, amd ? true
|
||||
, nvidia ? true
|
||||
, udev
|
||||
}:
|
||||
|
||||
let
|
||||
pname-suffix = if amd && nvidia then "" else if amd then "-amd" else "-nvidia";
|
||||
nvidia-postFixup = "addOpenGLRunpath $out/bin/nvtop";
|
||||
libPath = lib.makeLibraryPath [ libdrm ncurses ];
|
||||
libPath = lib.makeLibraryPath [ libdrm ncurses udev ];
|
||||
amd-postFixup = ''
|
||||
patchelf \
|
||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
@ -39,6 +39,7 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = with lib; [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DBUILD_TESTING=ON"
|
||||
"-DUSE_LIBUDEV_OVER_LIBSYSTEMD=ON"
|
||||
] ++ optional nvidia "-DNVML_INCLUDE_DIRS=${cudatoolkit}/include"
|
||||
++ optional nvidia "-DNVML_LIBRARIES=${cudatoolkit}/targets/x86_64-linux/lib/stubs/libnvidia-ml.so"
|
||||
++ optional (!amd) "-DAMDGPU_SUPPORT=OFF"
|
||||
|
Loading…
Reference in New Issue
Block a user