corerad: add updateScript
This commit is contained in:
parent
06f6a156af
commit
4e6315a944
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests, gitUpdater }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "corerad";
|
pname = "corerad";
|
||||||
@ -21,8 +21,11 @@ buildGoModule rec {
|
|||||||
ldflags+=" -X github.com/mdlayher/corerad/internal/build.linkTimestamp=$(<.gittagtime)"
|
ldflags+=" -X github.com/mdlayher/corerad/internal/build.linkTimestamp=$(<.gittagtime)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = {
|
passthru = {
|
||||||
inherit (nixosTests) corerad;
|
updateScript = gitUpdater { rev-prefix = "v"; };
|
||||||
|
tests = {
|
||||||
|
inherit (nixosTests) corerad;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user