boring: add passthru.updateScript

This commit is contained in:
Benjamin Sparks
2026-05-04 12:02:49 +02:00
parent fa72287967
commit 5bdd5f5e36
+9 -4
View File
@@ -5,6 +5,7 @@
installShellFiles,
lib,
stdenv,
nix-update-script,
testers,
}:
@@ -38,10 +39,14 @@ buildGoModule (finalAttrs: {
--zsh <($out/bin/boring --shell zsh)
'';
passthru.tests.version = testers.testVersion {
package = boring;
command = "boring version";
version = "boring ${finalAttrs.version}";
passthru = {
tests.version = testers.testVersion {
package = boring;
command = "boring version";
version = "boring ${finalAttrs.version}";
};
updateScript = nix-update-script { };
};
meta = {