R. RyanTM 798a2dfaa7 bosh-cli: 6.4.3 -> 6.4.4
(cherry picked from commit dd1b9306467d6ad3cfaabfb0d8d5a79c8c76404b)
2021-06-18 19:56:26 +00:00

44 lines
944 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, makeWrapper
, openssh
}:
buildGoModule rec {
pname = "bosh-cli";
version = "6.4.4";
src = fetchFromGitHub {
owner = "cloudfoundry";
repo = pname;
rev = "v${version}";
sha256 = "sha256-N7GrxePNewxhHnkQP/XBdUIEL5FsFD4avouZaIO+BKc=";
};
vendorSha256 = null;
postPatch = ''
substituteInPlace cmd/version.go --replace '[DEV BUILD]' '${version}'
'';
nativeBuildInputs = [ makeWrapper ];
subPackages = [ "." ];
doCheck = false;
postInstall = ''
mv $out/bin/bosh-cli $out/bin/bosh
wrapProgram $out/bin/bosh --prefix PATH : '${lib.makeBinPath [ openssh ]}'
'';
meta = with lib; {
description = "A command line interface to CloudFoundry BOSH";
homepage = "https://bosh.io";
changelog = "https://github.com/cloudfoundry/bosh-cli/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ris ];
};
}