mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
33 lines
791 B
Nix
33 lines
791 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "upbound";
|
|
version = "0.33.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "up";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PJMOR/XpWqtSIb3x61o0iLwETCHA5e07etmEZYQtzXw=";
|
|
};
|
|
|
|
vendorHash = "sha256-WLRXj4G49JEbQc2aFAjLLCpQrDhN94jazWxfM70hHqs=";
|
|
|
|
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";
|
|
};
|
|
}
|