buildkite-agent3: 3.0.1 -> 3.8.4 (#54430)
This commit is contained in:
parent
38527866cf
commit
83520c308c
@ -1,12 +1,15 @@
|
|||||||
{ callPackage, fetchFromGitHub, ... } @ args:
|
{ bash, callPackage, fetchFromGitHub, ... } @ args:
|
||||||
|
|
||||||
callPackage ./generic.nix (args // rec {
|
callPackage ./generic.nix (args // rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "buildkite";
|
owner = "buildkite";
|
||||||
repo = "agent";
|
repo = "agent";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "09smyrzp1xkczlmh8vqb7bmjb2b5d6yf9birjgaw36c6m44bpfvs";
|
sha256 = "0sr1rxl92d4wdipl66f1yymx5bmyj1y85v6k22v57rzr6yhyfmsf";
|
||||||
};
|
};
|
||||||
version = "3.0.1";
|
version = "3.8.4";
|
||||||
hasBootstrapScript = false;
|
hasBootstrapScript = false;
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash
|
||||||
|
'';
|
||||||
})
|
})
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildGoPackage, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep
|
{ stdenv, buildGoPackage, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep
|
||||||
, src, version, hasBootstrapScript
|
, src, version, hasBootstrapScript, postPatch ? ""
|
||||||
, ... }:
|
, ... }:
|
||||||
let
|
let
|
||||||
goPackagePath = "github.com/buildkite/agent";
|
goPackagePath = "github.com/buildkite/agent";
|
||||||
@ -7,14 +7,10 @@ in
|
|||||||
buildGoPackage {
|
buildGoPackage {
|
||||||
name = "buildkite-agent-${version}";
|
name = "buildkite-agent-${version}";
|
||||||
|
|
||||||
inherit goPackagePath src;
|
inherit goPackagePath src postPatch;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
# on Linux, the TMPDIR is /build which is the same prefix as this package
|
|
||||||
# remove once #35068 is merged
|
|
||||||
noAuditTmpdir = stdenv.isLinux;
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
${stdenv.lib.optionalString hasBootstrapScript ''
|
${stdenv.lib.optionalString hasBootstrapScript ''
|
||||||
# Install bootstrap.sh
|
# Install bootstrap.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user