-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.nix
More file actions
34 lines (28 loc) · 828 Bytes
/
Copy pathpackage.nix
File metadata and controls
34 lines (28 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ buildGoLatestModule, versionCheckHook }:
buildGoLatestModule (finalAttrs: {
pname = "sysdig-mcp-server";
version = "3.0.0";
src = ./.;
# This hash is automatically re-calculated with `just rehash-package-nix`. This is automatically called as well by `just update`.
vendorHash = "sha256-/0V1S76eMZUH/TZqV+cKJTihJo8y+Qau9riGGXRa4lk=";
subPackages = [
"cmd/server"
];
ldflags = [
"-w"
"-s"
"-X main.Version=${finalAttrs.version}"
];
doCheck = false;
env.CGO_ENABLED = 0;
postInstall = ''
mv $out/bin/server $out/bin/sysdig-mcp-server
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Sysdig MCP Server";
homepage = "https://github.com/sysdiglabs/sysdig-mcp-server";
mainProgram = "sysdig-mcp-server";
};
})