git.iko.soy/typeable/nixpkgs
on master help sign in
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

commitca7d98399976be0dd562d1f8ecd62ed3e5cd5656 authorRodney Lorrimar <dev@rodney.id.au> dateWed 25 Apr 2018, 13:47 (9 years ago) parent8d58b1a
4 files changed+36−14
pkgs/development/tools/continuous-integration/buildkite-agent/2.x.nix+12 pkgs/development/tools/continuous-integration/buildkite-agent/3.x.nix+12 pkgs/development/tools/continuous-integration/buildkite-agent/default.nix → pkgs/development/tools/continuous-integration/buildkite-agent/generic.nix+9−13 pkgs/top-level/all-packages.nix+3−1
pkgs/development/tools/continuous-integration/buildkite-agent/2.x.nixnew file+12
@@ -0,0 +1,12 @@
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+})
pkgs/development/tools/continuous-integration/buildkite-agent/3.x.nixnew file+12
@@ -0,0 +1,12 @@
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+})
pkgs/development/tools/continuous-integration/buildkite-agent/default.nix → pkgs/development/tools/continuous-integration/buildkite-agent/generic.nixrenamed+9−13
@@ -1,19 +1,13 @@
1−{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }:
1+{ stdenv, buildGoPackage, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep
2+, src, version, hasBootstrapScript
3+, ... }:
24let
3− version = "2.6.10";
45 goPackagePath = "github.com/buildkite/agent";
56in
67buildGoPackage {
78 name = "buildkite-agent-${version}";
89
9− inherit goPackagePath;
10−
11− src = fetchFromGitHub {
12− owner = "buildkite";
13− repo = "agent";
14− rev = "v${version}";
15− sha256 = "07065hhhb418w5qlqnyiap45r59paysysbwz1l7dmaw3j4q8m8rg";
16− };
10+ inherit goPackagePath src;
1711
1812 nativeBuildInputs = [ makeWrapper ];
1913
@@ -22,18 +16,20 @@ buildGoPackage {
2216 noAuditTmpdir = stdenv.isLinux;
2317
2418 postInstall = ''
19+ ${stdenv.lib.optionalString hasBootstrapScript ''
2520 # Install bootstrap.sh
2621 mkdir -p $bin/libexec/buildkite-agent
2722 cp $NIX_BUILD_TOP/go/src/${goPackagePath}/templates/bootstrap.sh $bin/libexec/buildkite-agent
2823 sed -e "s|#!/bin/bash|#!${bash}/bin/bash|g" -i $bin/libexec/buildkite-agent/bootstrap.sh
24+ ''}
2925
3026 # Fix binary name
3127 mv $bin/bin/{agent,buildkite-agent}
3228
3329 # These are runtime dependencies
3430 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
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 ]}'
3733 '';
3834
3935 meta = with stdenv.lib; {
@@ -47,7 +43,7 @@ buildGoPackage {
4743 '';
4844 homepage = https://buildkite.com/docs/agent;
4945 license = licenses.mit;
50− maintainers = with maintainers; [ pawelpacana zimbatm ];
46+ maintainers = with maintainers; [ pawelpacana zimbatm rvl ];
5147 platforms = platforms.unix;
5248 };
5349}
pkgs/top-level/all-packages.nix+3−1
@@ -7592,7 +7592,9 @@ with pkgs;
75927592 buildbot-ui = buildbot.withPlugins (with self.buildbot-plugins; [ www ]);
75937593 buildbot-full = buildbot.withPlugins (with self.buildbot-plugins; [ www console-view waterfall-view grid-view wsgi-dashboards ]);
75947594
7595− buildkite-agent = callPackage ../development/tools/continuous-integration/buildkite-agent { };
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 { };
75967598
75977599 byacc = callPackage ../development/tools/parsing/byacc { };
75987600