From 084d1fa6df8f90ff679a1905f0c7bcbcca564663 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Fri, 24 Apr 2026 21:47:22 +0300 Subject: [PATCH] bartib: add nix-update-script --- pkgs/by-name/ba/bartib/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ba/bartib/package.nix b/pkgs/by-name/ba/bartib/package.nix index 1d861c60cedf..3fc6c9ce593c 100644 --- a/pkgs/by-name/ba/bartib/package.nix +++ b/pkgs/by-name/ba/bartib/package.nix @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, installShellFiles, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -12,7 +14,7 @@ rustPlatform.buildRustPackage (finalAttrs: { src = fetchFromGitHub { owner = "nikolassv"; repo = "bartib"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; sha256 = "sha256-eVLacxKD8seD8mxVN1D3HhKZkIDXsEsSisZnFbmhpSk="; }; @@ -22,8 +24,14 @@ rustPlatform.buildRustPackage (finalAttrs: { postInstall = '' installShellCompletion --cmd bartib --bash misc/bartibCompletion.sh + installShellCompletion --cmd bartib --fish misc/bartib.fish ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Simple timetracker for the command line"; homepage = "https://github.com/nikolassv/bartib";