nixpkgs/pkgs/development/tools/continuous-integration/buildkite-agent/3.x.nix

15 lines
425 B
Nix

{ bash, callPackage, fetchFromGitHub, ... } @ args:
callPackage ./generic.nix (args // rec {
src = fetchFromGitHub {
owner = "buildkite";
repo = "agent";
rev = "v${version}";
sha256 = "0sr1rxl92d4wdipl66f1yymx5bmyj1y85v6k22v57rzr6yhyfmsf";
};
version = "3.8.4";
hasBootstrapScript = false;
postPatch = ''
substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash
'';
})