mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
57 lines
1.8 KiB
Nix
57 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "headscale";
|
|
version = "0.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "juanfont";
|
|
repo = "headscale";
|
|
rev = "v${version}";
|
|
hash = "sha256-RqJrqY1Eh5/TY+vMAO5fABmeV5aSzcLD4fX7j1QDN6w=";
|
|
};
|
|
|
|
vendorHash = "sha256-8p5NFxXKaZPsW4B6NMzfi0pqfVroIahSgA0fukvB3JI=";
|
|
|
|
ldflags = ["-s" "-w" "-X github.com/juanfont/headscale/cmd/headscale/cli.Version=v${version}"];
|
|
|
|
nativeBuildInputs = [installShellFiles];
|
|
checkFlags = ["-short"];
|
|
|
|
tags = ["ts2019"];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd headscale \
|
|
--bash <($out/bin/headscale completion bash) \
|
|
--fish <($out/bin/headscale completion fish) \
|
|
--zsh <($out/bin/headscale completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/juanfont/headscale";
|
|
description = "An open source, self-hosted implementation of the Tailscale control server";
|
|
longDescription = ''
|
|
Tailscale is a modern VPN built on top of Wireguard. It works like an
|
|
overlay network between the computers of your networks - using all kinds
|
|
of NAT traversal sorcery.
|
|
|
|
Everything in Tailscale is Open Source, except the GUI clients for
|
|
proprietary OS (Windows and macOS/iOS), and the
|
|
'coordination/control server'.
|
|
|
|
The control server works as an exchange point of Wireguard public keys for
|
|
the nodes in the Tailscale network. It also assigns the IP addresses of
|
|
the clients, creates the boundaries between each user, enables sharing
|
|
machines between users, and exposes the advertised routes of your nodes.
|
|
|
|
Headscale implements this coordination server.
|
|
'';
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [nkje jk kradalby misterio77 ghuntley];
|
|
};
|
|
}
|