40 lines
925 B
Nix
40 lines
925 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "namespace-cli";
|
|
version = "0.0.396";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "namespacelabs";
|
|
repo = "foundation";
|
|
rev = "v${version}";
|
|
hash = "sha256-hDCHu/RlZfuEL20wO5V7cBcKQKswoUBwTp531rlYN5A=";
|
|
};
|
|
|
|
vendorHash = "sha256-E9RhELIGOjFa+gDinl4xDR3ckTtdFLqVoAT0HQoI38I=";
|
|
|
|
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";
|
|
};
|
|
}
|