depot/third_party/nixpkgs/pkgs/by-name/na/namespace-cli/package.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

35 lines
906 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "namespace-cli";
version = "0.0.333";
src = fetchFromGitHub {
owner = "namespacelabs";
repo = "foundation";
rev = "v${version}";
hash = "sha256-T0venXPksmr2prnYMZw4tAxj6oRShC6ImdhY8BeovO8=";
};
vendorHash = "sha256-jC9DL2E/Fprah22RDJSrt1ohYTKgU8RrfTTgEPU2q3Q=";
subPackages = ["cmd/nsc" "cmd/ns" "cmd/docker-credential-nsc"];
ldflags = [
"-s"
"-w"
"-X namespacelabs.dev/foundation/internal/cli/version.Tag=v${version}"
];
meta = with lib; {
mainProgram = "nsc";
maintainers = with maintainers; [ techknowlogick ];
license = licenses.asl20;
changelog = "https://github.com/namespacelabs/foundation/releases/tag/v${version}";
homepage = "https://github.com/namespacelabs/foundation";
description = "A command line interface for the Namespaces platform";
};
}