Unverified Commit 3ab6c3d2 authored by John Soo's avatar John Soo
Browse files

buildkite-agent: add updateScript

parent 5150e298
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
{ fetchFromGitHub, lib, buildGoModule,
  makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep,
  makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep, gitUpdater,
  nixosTests }:
buildGoModule rec {
  pname = "buildkite-agent";
@@ -31,8 +31,11 @@ buildGoModule rec {
      --prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
  '';

  passthru.tests = {
    smoke-test = nixosTests.buildkite-agents;
  passthru = {
    tests.smoke-test = nixosTests.buildkite-agents;
    updateScript = gitUpdater {
      rev-prefix = "v";
    };
  };

  meta = with lib; {