2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "upbound";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.17.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "up";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-WUMFWI3SzpgQgf6txOOIVTK/gTp9h5w/iQUkwyxVbKA=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-FDwcsf69l8GcMet9zUG2fuyoZgpEujB3A59eWg2GbdI=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/docker-credential-up" "cmd/up" ];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/upbound/up/internal/version.version=v${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"CLI for interacting with Upbound Cloud, Upbound Enterprise, and Universal Crossplane (UXP)";
|
|
|
|
homepage = "https://upbound.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lucperkins ];
|
|
|
|
mainProgram = "up";
|
|
|
|
};
|
|
|
|
}
|