From bec30d6e73cbddb95d23e373d52d6cf74c7e44c4 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Mon, 28 Oct 2024 16:39:20 +0800 Subject: [PATCH] amdgpu-top: add passthru.updateScript --- pkgs/by-name/am/amdgpu_top/package.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/am/amdgpu_top/package.nix b/pkgs/by-name/am/amdgpu_top/package.nix index 481e83bf67cd..3433e35a8a48 100644 --- a/pkgs/by-name/am/amdgpu_top/package.nix +++ b/pkgs/by-name/am/amdgpu_top/package.nix @@ -11,6 +11,7 @@ libXrandr, libXi, libXcursor, + nix-update-script, }: rustPlatform.buildRustPackage rec { @@ -51,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"; }; }