nixpkgs/pkgs/by-name/up/upbound/package.nix

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

33 lines
789 B
Nix
Raw Normal View History

2022-08-13 13:52:38 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "upbound";
2024-10-09 01:59:28 +00:00
version = "0.34.0";
2022-08-13 13:52:38 +00:00
src = fetchFromGitHub {
owner = pname;
repo = "up";
rev = "v${version}";
2024-10-09 01:59:28 +00:00
hash = "sha256-npWCGR0/iXAF7efreWhpwqboXJ24lqk5TPaB7glwEFI=";
2022-08-13 13:52:38 +00:00
};
2024-10-09 01:59:28 +00:00
vendorHash = "sha256-f/RPyjrC5FsOjC5wnBtqEbLeVX7VeiVYFpRXcQ2lTc4=";
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";
};
}