Unverified Commit 4e6315a9 authored by Jared Baur's avatar Jared Baur
Browse files

corerad: add updateScript

parent 06f6a156
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests, gitUpdater }:

buildGoModule rec {
  pname = "corerad";
@@ -21,9 +21,12 @@ buildGoModule rec {
    ldflags+=" -X github.com/mdlayher/corerad/internal/build.linkTimestamp=$(<.gittagtime)"
  '';

  passthru.tests = {
  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
    tests = {
      inherit (nixosTests) corerad;
    };
  };

  meta = with lib; {
    homepage = "https://github.com/mdlayher/corerad";