From 5b9f7a83593d9f6f7f68c47b6b174f4603b2f65a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 22 Aug 2024 16:34:28 +0200 Subject: [PATCH 1/2] systemctl-tui: format + testVersion + updateScript --- pkgs/by-name/sy/systemctl-tui/package.nix | 30 ++++++++++++++--------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/sy/systemctl-tui/package.nix b/pkgs/by-name/sy/systemctl-tui/package.nix index 4ac9266a02ea..817ba3705dc9 100644 --- a/pkgs/by-name/sy/systemctl-tui/package.nix +++ b/pkgs/by-name/sy/systemctl-tui/package.nix @@ -1,8 +1,12 @@ -{ lib -, rustPlatform -, fetchCrate -, stdenv -, darwin +{ + lib, + rustPlatform, + fetchCrate, + stdenv, + darwin, + nix-update-script, + testers, + systemctl-tui, }: rustPlatform.buildRustPackage rec { @@ -16,15 +20,19 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-rlKizeWPWZUy23IHII6hrNVLFUR5xSkDQxYrc5WToC0="; - buildInputs = lib.optionals stdenv.isDarwin [ - darwin.apple_sdk.frameworks.AppKit - ]; + buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ]; - meta = with lib; { + passthru = { + updateScript = nix-update-script; + tests.version = testers.testVersion { package = systemctl-tui; }; + }; + + meta = { description = "Simple TUI for interacting with systemd services and their logs"; homepage = "https://crates.io/crates/systemctl-tui"; - license = licenses.mit; - maintainers = with maintainers; [ siph ]; + changelog = "https://github.com/rgwood/systemctl-tui/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ siph ]; mainProgram = "systemctl-tui"; }; } From fdac5de96c61a6847bbf018a0d19d54a83674ec4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 22 Aug 2024 16:37:22 +0200 Subject: [PATCH 2/2] systemctl-tui: 0.3.6 -> 0.3.7 Diff: https://diff.rs/systemctl-tui/0.3.6/0.3.7 Changelog: https://github.com/rgwood/systemctl-tui/releases/tag/v0.3.7 --- pkgs/by-name/sy/systemctl-tui/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sy/systemctl-tui/package.nix b/pkgs/by-name/sy/systemctl-tui/package.nix index 817ba3705dc9..6ff4f6bfd2b1 100644 --- a/pkgs/by-name/sy/systemctl-tui/package.nix +++ b/pkgs/by-name/sy/systemctl-tui/package.nix @@ -11,14 +11,14 @@ rustPlatform.buildRustPackage rec { pname = "systemctl-tui"; - version = "0.3.6"; + version = "0.3.7"; src = fetchCrate { inherit pname version; - hash = "sha256-R7PeExN31vjGJnvRCYZO8DjZWXa17OFZ+lpdxCPIVpE="; + hash = "sha256-i0yCVXip1RcvKqxidflgW4wJFxAmUPRO04CeETzUgms="; }; - cargoHash = "sha256-rlKizeWPWZUy23IHII6hrNVLFUR5xSkDQxYrc5WToC0="; + cargoHash = "sha256-4gY9pQO2ljbyviaL20ikEqwdAHS4bqpzE6YyaBW/b7c="; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];