3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/headscale/default.nix
2021-08-13 21:04:22 +09:00

27 lines
770 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "headscale";
version = "0.6.0";
src = fetchFromGitHub {
owner = "juanfont";
repo = "headscale";
rev = "v${version}";
sha256 = "sha256-RZwuoA9z+UnjQlqDqHMSaSKIuKu/qGBh5VBNrzeuac0=";
};
vendorSha256 = "sha256-EnTp4KgFyNGCLK5p1mE0yJLdFrhsLsmsSGJnDyWUVKo=";
# 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 ];
};
}