2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "namespace-cli";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.0.328";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "namespacelabs";
|
|
|
|
repo = "foundation";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-M6hX+muUC4v7Nmu2N8cONCLPJc6pVv6UJ1WO/uSDYnM=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-AVbRqgk5UldpaqyEmdYDpwzaZEo5r+M3Kwxb3Sh1jLQ=";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|