From 8c8159cdfdaf1a9ef9901e1ac0c97aa630178b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Plagborg=20Bak=20S=C3=B8rensen?= Date: Fri, 22 May 2026 07:19:40 +0200 Subject: [PATCH] psleep: init at 0.3.0 --- pkgs/by-name/ps/psleep/package.nix | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/ps/psleep/package.nix diff --git a/pkgs/by-name/ps/psleep/package.nix b/pkgs/by-name/ps/psleep/package.nix new file mode 100644 index 000000000000..d0824f8c09b8 --- /dev/null +++ b/pkgs/by-name/ps/psleep/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "psleep"; + version = "0.3.0"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Yesh-02"; + repo = "psleep"; + tag = "v${finalAttrs.version}"; + hash = "sha256-/Zi572GA0Stwl0JHUyFzvQ4V1GsbTetF7T74gaFoWM8="; + }; + + cargoHash = "sha256-5yzCQfuVSI02B9HQ9+HMkl7qSoMOH0so4zBPwop4KX4="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Like sleep but shows a live progress bar"; + homepage = "https://github.com/Yesh-02/psleep"; + changelog = "https://github.com/Yesh-02/psleep/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ kpbaks ]; + mainProgram = "psleep"; + }; +})