Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / upbound / default.nix
blobc4b2a421b4310d96e38f41290745c97406843386
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "upbound";
5   version = "0.21.0";
7   src = fetchFromGitHub {
8     owner = pname;
9     repo = "up";
10     rev = "v${version}";
11     sha256 = "sha256-SvnmdpsdXbPSC+4inoMvu55az33Zucqf4c3yQ0g6EMw=";
12   };
14   vendorHash = "sha256-ai+Mro/ooUElJJq8BbnCo9PupIAwlanDeh+oe5otJJ4=";
16   subPackages = [ "cmd/docker-credential-up" "cmd/up" ];
18   ldflags = [
19     "-s"
20     "-w"
21     "-X github.com/upbound/up/internal/version.version=v${version}"
22   ];
24   meta = with lib; {
25     description =
26       "CLI for interacting with Upbound Cloud, Upbound Enterprise, and Universal Crossplane (UXP)";
27     homepage = "https://upbound.io";
28     license = licenses.asl20;
29     maintainers = with maintainers; [ lucperkins ];
30     mainProgram = "up";
31   };