15 pname = "buildkite-agent";
18 src = fetchFromGitHub {
22 hash = "sha256-qvwJ8NFFJbD9btTAs8x7V4tbDDo4L7O679XYp2t9MpE=";
25 vendorHash = "sha256-Ovi1xK+TtWli6ZG0s5Pu0JGAjtbyUWBgiKCBybVbcXk=";
28 substituteInPlace clicommand/agent_start.go --replace /bin/bash ${bash}/bin/bash
31 nativeBuildInputs = [ makeWrapper ];
37 mv $out/bin/{agent,buildkite-agent}
39 # These are runtime dependencies
40 wrapProgram $out/bin/buildkite-agent \
41 --prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
45 tests.smoke-test = nixosTests.buildkite-agents;
46 updateScript = gitUpdater {
52 description = "Build runner for buildkite.com";
54 The buildkite-agent is a small, reliable, and cross-platform build runner
55 that makes it easy to run automated builds on your own infrastructure.
56 It’s main responsibilities are polling buildkite.com for work, running
57 build jobs, reporting back the status code and output log of the job,
58 and uploading the job's artifacts.
60 homepage = "https://buildkite.com/docs/agent";
61 license = licenses.mit;
62 maintainers = with maintainers; [ pawelpacana zimbatm jsoo1 techknowlogick ];
63 platforms = with platforms; unix ++ darwin;