mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
24e2bb4e8c
Diff: https://github.com/Umio-Yasuno/amdgpu_top/compare/v0.1.9...v0.1.11 Changelog: https://github.com/Umio-Yasuno/amdgpu_top/releases
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, libdrm
|
|
, libX11
|
|
, libGL
|
|
, wayland
|
|
, wayland-protocols
|
|
, libxkbcommon
|
|
, libXrandr
|
|
, libXi
|
|
, libXcursor
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "amdgpu_top";
|
|
version = "0.1.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Umio-Yasuno";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-jeKwvecB67U+TACr4uXGjRWvRG3GUleiqyu5MYlFwq0=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/Umio-Yasuno/amdgpu_top";
|
|
changelog = "https://github.com/Umio-Yasuno/amdgpu_top/releases";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ geri1701 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|