uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/servers/headscale/default.nix
Normal file
49
pkgs/servers/headscale/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "headscale";
|
||||
version = "0.15.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "juanfont";
|
||||
repo = "headscale";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ZgChln6jcxyEHbCy89kNnwd9qWcB0yDq05xFkM69WLs=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-0jZ37tmBG8E0HS/wbQyQvAKo1UKQdaZDa+OTGfGDAi4=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/juanfont/headscale/cmd/headscale/cli.Version=v${version}" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue