depot/third_party/nixpkgs/pkgs/by-name/na/namespace-cli/package.nix

35 lines
904 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "namespace-cli";
version = "0.0.394";
src = fetchFromGitHub {
owner = "namespacelabs";
repo = "foundation";
rev = "v${version}";
hash = "sha256-ktXpFhE/+DmlqIaH8R6zu4Y1I7sr8NYeZP8lWeNN0bA=";
};
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";
};
}