depot/third_party/nixpkgs/pkgs/by-name/na/namespace-cli/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

35 lines
904 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "namespace-cli";
version = "0.0.389";
src = fetchFromGitHub {
owner = "namespacelabs";
repo = "foundation";
rev = "v${version}";
hash = "sha256-UtHUqintxcNSHDfrK2vWQxsHBXQ63vZZ5bm/RSA6DSc=";
};
vendorHash = "sha256-MQAEvJcu8cXPZbk7HTb7eD1yECvMcQXytvNQwG+4ky0=";
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 = "Command line interface for the Namespaces platform";
};
}