Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
40 lines (37 loc) · 1.44 KB
/
Copy pathflake.nix
File metadata and controls
40 lines (37 loc) · 1.44 KB
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
35
36
37
38
39
40
{
description = "tailcat: netcat over Tailscale's data plane, without its control plane";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
# flakehashes.json is maintained by `make tidy`
# (tool/updateflakes); do not edit it by hand.
flakeHashes = builtins.fromJSON (builtins.readFile ./flakehashes.json);
# go.mod requires Go 1.27, which is newer than the default
# pkgs.go/buildGoModule as of 2026-08.
buildGoModule = pkgs.buildGoModule.override { go = pkgs.go_1_27; };
in
{
packages.default = buildGoModule {
pname = "tailcat";
version = self.shortRev or "dev";
src = self;
subPackages = [ "cmd/tailcat" ];
vendorHash = flakeHashes.vendor.sri;
meta = {
description = "netcat over Tailscale's data plane, without its control plane";
homepage = "https://github.com/tailscale/tailcat";
license = pkgs.lib.licenses.bsd3;
mainProgram = "tailcat";
};
};
devShells.default = pkgs.mkShell {
packages = [ pkgs.go_1_27 ];
};
});
}
# nix-direnv cache busting line: sha256-X5Bj4DVedBe0E7JJcef6gny5UNCWjID+5mU2yWKKUc8=