Home

tailpolicy @main - refs - log -
-
https://git.jolheiser.com/tailpolicy.git
Tailscale policy editor on your tailnet
tailpolicy / nix / pkg.nix
- raw
 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
{
  pkgs ? import <nixpkgs>,
}:
let
  name = "tailpolicy";
in
pkgs.buildGoModule {
  pname = name;
  version = "main";
  src = pkgs.nix-gitignore.gitignoreSource [ ] (
    builtins.path {
      inherit name;
      path = ../.;
    }
  );
  vendorHash = pkgs.lib.fileContents ../go.mod.sri;
  env.CGO_ENABLED = 0;
  flags = [ "-trimpath" ];
  ldflags = [
    "-s"
    "-w"
    "-extldflags -static"
  ];
  meta = {
    description = "Tailscale policy";
    homepage = "https://git.jolheiser.com/tailpolicy";
    mainProgram = "tailpolicy";
  };
}