forked from mirrors/nixpkgs
27 lines
770 B
Nix
27 lines
770 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "headscale";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "juanfont";
|
|
repo = "headscale";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-O8PJrowP9iDK4sQXHNi1eo44X/tRc7nyKZgJUB6fKC4=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-0Lqr/tWk31S01vi21sG2gtlGouOhecL4u8ScKG0nWLo=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|