Unverified Commit 834d0bdf authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

amdgpu_top: 0.8.5 -> 0.9.2; add passthru.updateScript (#351840)

parents df0c4079 3c31ae26
Loading
Loading
Loading
Loading
+552 −513

File changed and moved.

Preview size limit exceeded, changes collapsed.

+24 −20
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, libdrm
, libX11
, libGL
, wayland
, wayland-protocols
, libxkbcommon
, libXrandr
, libXi
, libXcursor
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  libdrm,
  libX11,
  libGL,
  wayland,
  wayland-protocols,
  libxkbcommon,
  libXrandr,
  libXi,
  libXcursor,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
  pname = "amdgpu_top";
  version = "0.8.5";
  version = "0.9.2";

  src = fetchFromGitHub {
    owner = "Umio-Yasuno";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-n1nOlFXI8UCJxEgbuSbmMUhkZaLS3D4jGQdKH82WGc8=";
    hash = "sha256-eXUeXBFW2ejkOeMUujMwY0gidzdaX9yWWOfx1ZwA3lk=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "libdrm_amdgpu_sys-0.7.3" = "sha256-4bwbwVoNV2yroh6OLNxBq8gKaFJtoin/b9xaRdh9QOk=";
      "libdrm_amdgpu_sys-0.7.5" = "sha256-IkA1kJggkaSWzdDBHpNjU8WZr6wpSQWohERiHWQS2UY=";
    };
    lockFile = ./Cargo.lock;
  };

  buildInputs = [
@@ -50,13 +52,15 @@ rustPlatform.buildRustPackage rec {
    patchelf --set-rpath "${lib.makeLibraryPath buildInputs}" $out/bin/${pname}
  '';

  meta = with lib; {
  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 = licenses.mit;
    maintainers = with maintainers; [ geri1701 ];
    platforms = platforms.linux;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ geri1701 ];
    platforms = lib.platforms.linux;
    mainProgram = "amdgpu_top";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -1465,8 +1465,6 @@ with pkgs;
  alsaequal = callPackage ../tools/audio/alsaequal { };
  amdgpu_top = callPackage ../tools/system/amdgpu_top { };
  acquire = with python3Packages; toPythonApplication acquire;
  actdiag = with python3.pkgs; toPythonApplication actdiag;