2021-07-10 00:06:53 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "headscale";
|
2021-07-12 18:28:37 +02:00
|
|
|
version = "0.3.3";
|
2021-07-10 00:06:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "juanfont";
|
|
|
|
repo = "headscale";
|
|
|
|
rev = "v${version}";
|
2021-07-12 18:28:37 +02:00
|
|
|
sha256 = "0nf2l8l23wzn3l3x4698rfr3g6lkx5qfzsbfl0rv25q1pqgybdzj";
|
2021-07-10 00:06:53 +02:00
|
|
|
};
|
|
|
|
|
2021-07-12 18:28:37 +02:00
|
|
|
vendorSha256 = "sha256-0Lqr/tWk31S01vi21sG2gtlGouOhecL4u8ScKG0nWLo=";
|
2021-07-10 00:06:53 +02:00
|
|
|
|
|
|
|
# Ldflags are same as build target in the project's Makefile
|
|
|
|
# https://github.com/juanfont/headscale/blob/main/Makefile
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=v${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An implementation of the Tailscale coordination server";
|
|
|
|
homepage = "https://github.com/juanfont/headscale";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nkje ];
|
|
|
|
};
|
|
|
|
}
|