corerad: add updateScript

This commit is contained in:
Jared Baur 2024-10-08 06:11:43 -07:00
parent 06f6a156af
commit 4e6315a944
No known key found for this signature in database

View File

@ -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; {