Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 pname = "namespace-cli";
9 version = "0.0.434";
10
11 src = fetchFromGitHub {
12 owner = "namespacelabs";
13 repo = "foundation";
14 rev = "v${version}";
15 hash = "sha256-D12HbOIpnzVNj5UuYlHD1nMrPZjRv+rtMQVl7WoHapc=";
16 };
17
18 vendorHash = "sha256-V34JXfFFoN9rPT8NZLVh9GETq1yK8/ja5yJwp8gZ/H0=";
19
20 subPackages = [
21 "cmd/nsc"
22 "cmd/ns"
23 "cmd/docker-credential-nsc"
24 ];
25
26 ldflags = [
27 "-s"
28 "-w"
29 "-X namespacelabs.dev/foundation/internal/cli/version.Tag=v${version}"
30 ];
31
32 meta = {
33 mainProgram = "nsc";
34 maintainers = with lib.maintainers; [ techknowlogick ];
35 license = lib.licenses.asl20;
36 changelog = "https://github.com/namespacelabs/foundation/releases/tag/v${version}";
37 homepage = "https://github.com/namespacelabs/foundation";
38 description = "Command line interface for the Namespaces platform";
39 };
40}