Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
libdrm,
|
|
libX11,
|
|
libGL,
|
|
wayland,
|
|
wayland-protocols,
|
|
libxkbcommon,
|
|
libXrandr,
|
|
libXi,
|
|
libXcursor,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "amdgpu_top";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Umio-Yasuno";
|
|
repo = "amdgpu_top";
|
|
tag = "v${version}";
|
|
hash = "sha256-ZXvTLzEjH+R59GqRzDcdtNI7MD7SpG89Wm32KdgEAgg=";
|
|
};
|
|
|
|
cargoHash = "sha256-L9vQHht7sZCosKTiMS77IG2WOOTmnMbLQqN8SInU6zM=";
|
|
|
|
buildInputs = [
|
|
libdrm
|
|
libX11
|
|
libGL
|
|
wayland
|
|
wayland-protocols
|
|
libxkbcommon
|
|
libXrandr
|
|
libXi
|
|
libXcursor
|
|
];
|
|
|
|
postInstall = ''
|
|
install -D ./assets/amdgpu_top.desktop -t $out/share/applications/
|
|
install -D ./assets/amdgpu_top-tui.desktop -t $out/share/applications/
|
|
'';
|
|
|
|
postFixup = ''
|
|
patchelf --set-rpath "${lib.makeLibraryPath buildInputs}" $out/bin/${pname}
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Tool to display AMDGPU usage";
|
|
homepage = "https://github.com/Umio-Yasuno/amdgpu_top";
|
|
changelog = "https://github.com/Umio-Yasuno/amdgpu_top/releases";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
geri1701
|
|
Gliczy
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "amdgpu_top";
|
|
};
|
|
}
|