From 4e6315a94441bb105c77e162781ec9d585bbe642 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Tue, 8 Oct 2024 06:11:43 -0700 Subject: [PATCH] corerad: add updateScript --- pkgs/tools/networking/corerad/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/corerad/default.nix b/pkgs/tools/networking/corerad/default.nix index fd6fee9a2a7c..b0a65f59189c 100644 --- a/pkgs/tools/networking/corerad/default.nix +++ b/pkgs/tools/networking/corerad/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, nixosTests }: +{ lib, buildGoModule, fetchFromGitHub, nixosTests, gitUpdater }: buildGoModule rec { pname = "corerad"; @@ -21,8 +21,11 @@ buildGoModule rec { ldflags+=" -X github.com/mdlayher/corerad/internal/build.linkTimestamp=$(<.gittagtime)" ''; - passthru.tests = { - inherit (nixosTests) corerad; + passthru = { + updateScript = gitUpdater { rev-prefix = "v"; }; + tests = { + inherit (nixosTests) corerad; + }; }; meta = with lib; {