buildkite-agent: 3.17.0 -> 3.25.0, use buildGoModule, add darwin to platforms (#101954)
This commit is contained in:
parent
a30a084b37
commit
0d41c9a9c6
@ -1,8 +1,8 @@
|
|||||||
{ fetchFromGitHub, stdenv, buildGoPackage,
|
{ fetchFromGitHub, stdenv, buildGoModule,
|
||||||
makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }:
|
makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }:
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
name = "buildkite-agent-${version}";
|
name = "buildkite-agent-${version}";
|
||||||
version = "3.17.0";
|
version = "3.25.0";
|
||||||
|
|
||||||
goPackagePath = "github.com/buildkite/agent";
|
goPackagePath = "github.com/buildkite/agent";
|
||||||
|
|
||||||
@ -10,17 +10,18 @@ buildGoPackage rec {
|
|||||||
owner = "buildkite";
|
owner = "buildkite";
|
||||||
repo = "agent";
|
repo = "agent";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0a7x919kxnpdn0pnhc5ilx1z6ninx8zgjvsd0jcg4qwh0qqp5ppr";
|
sha256 = "VxAGi2NpXpc3U+GNIvGJSkdHGODrX2s8oY+dQ8QXIHQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "X1K6uKiMFXTDT1PcedGQ8HLGox8ePP7Cz0Ihf4m9ts8=";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash
|
substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
# on Linux, the TMPDIR is /build which is the same prefix as this package
|
doCheck = false;
|
||||||
# remove once #35068 is merged
|
|
||||||
noAuditTmpdir = stdenv.isLinux;
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Fix binary name
|
# Fix binary name
|
||||||
@ -43,6 +44,6 @@ buildGoPackage rec {
|
|||||||
homepage = "https://buildkite.com/docs/agent";
|
homepage = "https://buildkite.com/docs/agent";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ pawelpacana zimbatm rvl ];
|
maintainers = with maintainers; [ pawelpacana zimbatm rvl ];
|
||||||
platforms = platforms.unix;
|
platforms = with platforms; unix ++ darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user