Loading pkgs/tools/system/amdgpu_top/default.nix +32 −2 Original line number Diff line number Diff line { lib, rustPlatform, fetchFromGitHub, libdrm }: { lib , rustPlatform , fetchFromGitHub , libdrm , libX11 , libGL , wayland , wayland-protocols , libxkbcommon , libXrandr , libXi , libXcursor }: rustPlatform.buildRustPackage rec { pname = "amdgpu_top"; Loading @@ -13,7 +25,25 @@ rustPlatform.buildRustPackage rec { cargoLock.lockFile = ./Cargo.lock; buildInputs = [ libdrm ]; buildInputs = [ libdrm libX11 libGL wayland wayland-protocols libxkbcommon libXrandr libXi libXcursor ]; postInstall = '' install -D ./assets/${pname}.desktop -t $out/share/applications/ ''; postFixup = '' patchelf --set-rpath "${lib.makeLibraryPath buildInputs}" $out/bin/${pname} ''; meta = with lib; { description = "Tool to display AMDGPU usage"; Loading Loading
pkgs/tools/system/amdgpu_top/default.nix +32 −2 Original line number Diff line number Diff line { lib, rustPlatform, fetchFromGitHub, libdrm }: { lib , rustPlatform , fetchFromGitHub , libdrm , libX11 , libGL , wayland , wayland-protocols , libxkbcommon , libXrandr , libXi , libXcursor }: rustPlatform.buildRustPackage rec { pname = "amdgpu_top"; Loading @@ -13,7 +25,25 @@ rustPlatform.buildRustPackage rec { cargoLock.lockFile = ./Cargo.lock; buildInputs = [ libdrm ]; buildInputs = [ libdrm libX11 libGL wayland wayland-protocols libxkbcommon libXrandr libXi libXcursor ]; postInstall = '' install -D ./assets/${pname}.desktop -t $out/share/applications/ ''; postFixup = '' patchelf --set-rpath "${lib.makeLibraryPath buildInputs}" $out/bin/${pname} ''; meta = with lib; { description = "Tool to display AMDGPU usage"; Loading