2021-07-14 22:03:04 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "headscale";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "0.9.2";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "juanfont";
|
|
|
|
repo = "headscale";
|
|
|
|
rev = "v${version}";
|
2021-10-04 12:37:57 +00:00
|
|
|
sha256 = "sha256-1YxcfSOGGdyUZyQdKSHUiK5/43Ki/QvHvIZ/Ai5Mq7E=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
vendorSha256 = "sha256-LJajQDk+r9Wt2t/kwNhsCoSlU+EjSNc1WT2vqtqg4LI=";
|
2021-07-14 22:03:04 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|