summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/he/headplane-agent/package.nix
blob: 583c4941847d1397dc83ad77c3a44bdcb7e6a034 (plain)
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
{
  buildGoModule,
  headplane,
  lib,
}:
buildGoModule (finalAttrs: {
  pname = "headplane-agent";
  __structuredAttrs = true;
  inherit (headplane) version src;

  vendorHash = headplane.goVendorHash;

  subPackages = [ "cmd/hp_agent" ];

  ldflags = [
    "-s"
    "-w"
  ];
  env.CGO_ENABLED = 0;

  meta = {
    description = "Optional sidecar process providing additional features for headplane";
    homepage = "https://github.com/tale/headplane";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      igor-ramazanov
      stealthbadger747
    ];
    mainProgram = "hp_agent";
    platforms = lib.platforms.linux ++ lib.platforms.darwin;
  };
})