nixpkgs/pkgs/development/tools/upbound/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
791 B
Nix
Raw Normal View History

2022-08-13 13:52:38 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "upbound";
2023-09-06 02:44:10 +00:00
version = "0.19.1";
2022-08-13 13:52:38 +00:00
src = fetchFromGitHub {
owner = pname;
repo = "up";
rev = "v${version}";
2023-09-06 02:44:10 +00:00
sha256 = "sha256-Dr6EKpKVy2DLhivJ42Bx+WJL2L710sQlXroaAm66Gpo=";
2022-08-13 13:52:38 +00:00
};
2023-09-06 02:44:10 +00:00
vendorHash = "sha256-J7rZAvEx0jgkhJIEE19rV2WdBCIvkqYzB72ZiABs56U=";
2022-08-13 13:52:38 +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";
};
}