diff options
author | Andrey Kuznetsov <fear@loathing.in> | 2020-10-29 01:43:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 23:43:24 +0100 |
commit | 0d41c9a9c623b62ce5f700d2d7bd36eb970f9b4e (patch) | |
tree | e7843a94b07539ef1c4608126e67f7e0577da996 /pkgs/development/tools/continuous-integration/buildkite-agent/default.nix | |
parent | a30a084b371a364f684adaed66fbab83324a6a56 (diff) |
buildkite-agent: 3.17.0 -> 3.25.0, use buildGoModule, add darwin to platforms (#101954)
Diffstat (limited to 'pkgs/development/tools/continuous-integration/buildkite-agent/default.nix')
-rw-r--r-- | pkgs/development/tools/continuous-integration/buildkite-agent/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/development/tools/continuous-integration/buildkite-agent/default.nix b/pkgs/development/tools/continuous-integration/buildkite-agent/default.nix index ceaa704b565c6..97f75a99c0790 100644 --- a/pkgs/development/tools/continuous-integration/buildkite-agent/default.nix +++ b/pkgs/development/tools/continuous-integration/buildkite-agent/default.nix @@ -1,8 +1,8 @@ -{ fetchFromGitHub, stdenv, buildGoPackage, +{ fetchFromGitHub, stdenv, buildGoModule, makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }: -buildGoPackage rec { +buildGoModule rec { name = "buildkite-agent-${version}"; - version = "3.17.0"; + version = "3.25.0"; goPackagePath = "github.com/buildkite/agent"; @@ -10,17 +10,18 @@ buildGoPackage rec { owner = "buildkite"; repo = "agent"; rev = "v${version}"; - sha256 = "0a7x919kxnpdn0pnhc5ilx1z6ninx8zgjvsd0jcg4qwh0qqp5ppr"; + sha256 = "VxAGi2NpXpc3U+GNIvGJSkdHGODrX2s8oY+dQ8QXIHQ="; }; + + vendorSha256 = "X1K6uKiMFXTDT1PcedGQ8HLGox8ePP7Cz0Ihf4m9ts8="; + postPatch = '' substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash ''; nativeBuildInputs = [ makeWrapper ]; - # on Linux, the TMPDIR is /build which is the same prefix as this package - # remove once #35068 is merged - noAuditTmpdir = stdenv.isLinux; + doCheck = false; postInstall = '' # Fix binary name @@ -43,6 +44,6 @@ buildGoPackage rec { homepage = "https://buildkite.com/docs/agent"; license = licenses.mit; maintainers = with maintainers; [ pawelpacana zimbatm rvl ]; - platforms = platforms.unix; + platforms = with platforms; unix ++ darwin; }; } |