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
791 B
Nix
Raw Normal View History

2022-08-13 16:52:38 +03:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "upbound";
2024-05-11 22:28:07 +03:00
version = "0.30.0";
2022-08-13 16:52:38 +03:00
src = fetchFromGitHub {
owner = pname;
repo = "up";
rev = "v${version}";
2024-05-11 22:28:07 +03:00
sha256 = "sha256-KAWyHlqgj4xz3abSSa1cezpeDTmJbGSZAMffq3p/CyI=";
2022-08-13 16:52:38 +03:00
};
2024-05-11 22:28:07 +03:00
vendorHash = "sha256-4o1WJHGHiO9r8RC8hr4KWZBiC8h52la1gKdYaYxEjbk=";
2022-08-13 16:52:38 +03: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";
};
}