Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 makeWrapper, 6 openssh, 7}: 8 9buildGoModule rec { 10 pname = "bosh-cli"; 11 12 version = "7.9.8"; 13 14 src = fetchFromGitHub { 15 owner = "cloudfoundry"; 16 repo = "bosh-cli"; 17 rev = "v${version}"; 18 sha256 = "sha256-PCkP+IUjVlgcNHmBtUO2kuML8+dk4VT2ybtqsKbCzZo="; 19 }; 20 vendorHash = null; 21 22 postPatch = '' 23 substituteInPlace cmd/version.go --replace '[DEV BUILD]' '${version}' 24 ''; 25 26 nativeBuildInputs = [ makeWrapper ]; 27 28 subPackages = [ "." ]; 29 30 doCheck = false; 31 32 postInstall = '' 33 mv $out/bin/bosh-cli $out/bin/bosh 34 wrapProgram $out/bin/bosh --prefix PATH : '${lib.makeBinPath [ openssh ]}' 35 ''; 36 37 meta = { 38 description = "Command line interface to CloudFoundry BOSH"; 39 homepage = "https://bosh.io"; 40 changelog = "https://github.com/cloudfoundry/bosh-cli/releases/tag/v${version}"; 41 license = lib.licenses.asl20; 42 maintainers = with lib.maintainers; [ ris ]; 43 mainProgram = "bosh"; 44 }; 45}