2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
35 lines
906 B
Nix
35 lines
906 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "namespace-cli";
|
|
version = "0.0.302";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "namespacelabs";
|
|
repo = "foundation";
|
|
rev = "v${version}";
|
|
hash = "sha256-I4ZkPdxidT2670NU5o1QTaee4fuDJNEirg7peuHqaJQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-jYkEXoCxqlxLF7oRc7H+/pMwkphOEwt2qUFkg+JOKVA=";
|
|
|
|
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";
|
|
};
|
|
}
|