Home

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