lol

buildkite-agent3: init at 3.0.1 (#39471)

New stable release. Version 2.6 is kept for backwards compatibility.

https://github.com/buildkite/agent/releases/tag/v3.0.0
https://github.com/buildkite/agent/releases/tag/v3.0.1

authored by

Rodney Lorrimar and committed by zimbatm.tngl.sh ca7d9839 8d58b1a0

+36 -14
+12
pkgs/development/tools/continuous-integration/buildkite-agent/2.x.nix
···
··· 1 + { callPackage, fetchFromGitHub, ... } @ args: 2 + 3 + callPackage ./generic.nix (args // rec { 4 + src = fetchFromGitHub { 5 + owner = "buildkite"; 6 + repo = "agent"; 7 + rev = "v${version}"; 8 + sha256 = "07065hhhb418w5qlqnyiap45r59paysysbwz1l7dmaw3j4q8m8rg"; 9 + }; 10 + version = "2.6.10"; 11 + hasBootstrapScript = true; 12 + })
+12
pkgs/development/tools/continuous-integration/buildkite-agent/3.x.nix
···
··· 1 + { callPackage, fetchFromGitHub, ... } @ args: 2 + 3 + callPackage ./generic.nix (args // rec { 4 + src = fetchFromGitHub { 5 + owner = "buildkite"; 6 + repo = "agent"; 7 + rev = "v${version}"; 8 + sha256 = "09smyrzp1xkczlmh8vqb7bmjb2b5d6yf9birjgaw36c6m44bpfvs"; 9 + }; 10 + version = "3.0.1"; 11 + hasBootstrapScript = false; 12 + })
+9 -13
pkgs/development/tools/continuous-integration/buildkite-agent/default.nix pkgs/development/tools/continuous-integration/buildkite-agent/generic.nix
··· 1 - { stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }: 2 let 3 - version = "2.6.10"; 4 goPackagePath = "github.com/buildkite/agent"; 5 in 6 buildGoPackage { 7 name = "buildkite-agent-${version}"; 8 9 - inherit goPackagePath; 10 - 11 - src = fetchFromGitHub { 12 - owner = "buildkite"; 13 - repo = "agent"; 14 - rev = "v${version}"; 15 - sha256 = "07065hhhb418w5qlqnyiap45r59paysysbwz1l7dmaw3j4q8m8rg"; 16 - }; 17 18 nativeBuildInputs = [ makeWrapper ]; 19 ··· 22 noAuditTmpdir = stdenv.isLinux; 23 24 postInstall = '' 25 # Install bootstrap.sh 26 mkdir -p $bin/libexec/buildkite-agent 27 cp $NIX_BUILD_TOP/go/src/${goPackagePath}/templates/bootstrap.sh $bin/libexec/buildkite-agent 28 sed -e "s|#!/bin/bash|#!${bash}/bin/bash|g" -i $bin/libexec/buildkite-agent/bootstrap.sh 29 30 # Fix binary name 31 mv $bin/bin/{agent,buildkite-agent} 32 33 # These are runtime dependencies 34 wrapProgram $bin/bin/buildkite-agent \ 35 - --prefix PATH : '${stdenv.lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}' \ 36 - --set BUILDKITE_BOOTSTRAP_SCRIPT_PATH $bin/libexec/buildkite-agent/bootstrap.sh 37 ''; 38 39 meta = with stdenv.lib; { ··· 47 ''; 48 homepage = https://buildkite.com/docs/agent; 49 license = licenses.mit; 50 - maintainers = with maintainers; [ pawelpacana zimbatm ]; 51 platforms = platforms.unix; 52 }; 53 }
··· 1 + { stdenv, buildGoPackage, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep 2 + , src, version, hasBootstrapScript 3 + , ... }: 4 let 5 goPackagePath = "github.com/buildkite/agent"; 6 in 7 buildGoPackage { 8 name = "buildkite-agent-${version}"; 9 10 + inherit goPackagePath src; 11 12 nativeBuildInputs = [ makeWrapper ]; 13 ··· 16 noAuditTmpdir = stdenv.isLinux; 17 18 postInstall = '' 19 + ${stdenv.lib.optionalString hasBootstrapScript '' 20 # Install bootstrap.sh 21 mkdir -p $bin/libexec/buildkite-agent 22 cp $NIX_BUILD_TOP/go/src/${goPackagePath}/templates/bootstrap.sh $bin/libexec/buildkite-agent 23 sed -e "s|#!/bin/bash|#!${bash}/bin/bash|g" -i $bin/libexec/buildkite-agent/bootstrap.sh 24 + ''} 25 26 # Fix binary name 27 mv $bin/bin/{agent,buildkite-agent} 28 29 # These are runtime dependencies 30 wrapProgram $bin/bin/buildkite-agent \ 31 + ${stdenv.lib.optionalString hasBootstrapScript "--set BUILDKITE_BOOTSTRAP_SCRIPT_PATH $bin/libexec/buildkite-agent/bootstrap.sh"} \ 32 + --prefix PATH : '${stdenv.lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}' 33 ''; 34 35 meta = with stdenv.lib; { ··· 43 ''; 44 homepage = https://buildkite.com/docs/agent; 45 license = licenses.mit; 46 + maintainers = with maintainers; [ pawelpacana zimbatm rvl ]; 47 platforms = platforms.unix; 48 }; 49 }
+3 -1
pkgs/top-level/all-packages.nix
··· 7592 buildbot-ui = buildbot.withPlugins (with self.buildbot-plugins; [ www ]); 7593 buildbot-full = buildbot.withPlugins (with self.buildbot-plugins; [ www console-view waterfall-view grid-view wsgi-dashboards ]); 7594 7595 - buildkite-agent = callPackage ../development/tools/continuous-integration/buildkite-agent { }; 7596 7597 byacc = callPackage ../development/tools/parsing/byacc { }; 7598
··· 7592 buildbot-ui = buildbot.withPlugins (with self.buildbot-plugins; [ www ]); 7593 buildbot-full = buildbot.withPlugins (with self.buildbot-plugins; [ www console-view waterfall-view grid-view wsgi-dashboards ]); 7594 7595 + buildkite-agent = buildkite-agent2; 7596 + buildkite-agent2 = callPackage ../development/tools/continuous-integration/buildkite-agent/2.x.nix { }; 7597 + buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent/3.x.nix { }; 7598 7599 byacc = callPackage ../development/tools/parsing/byacc { }; 7600