mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
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,9 +21,12 @@ 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 = {
|
||||||
|
updateScript = gitUpdater { rev-prefix = "v"; };
|
||||||
|
tests = {
|
||||||
inherit (nixosTests) corerad;
|
inherit (nixosTests) corerad;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mdlayher/corerad";
|
homepage = "https://github.com/mdlayher/corerad";
|
||||||
|
Loading…
Reference in New Issue
Block a user