1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/servers/headscale/default.nix

27 lines
770 B
Nix
Raw Normal View History

2021-07-09 23:06:53 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "headscale";
2021-08-27 06:44:17 +01:00
version = "0.7.1";
2021-07-09 23:06:53 +01:00
src = fetchFromGitHub {
owner = "juanfont";
repo = "headscale";
rev = "v${version}";
2021-08-27 06:44:17 +01:00
sha256 = "sha256-/mpSIS3UajxFTQm+/Ko6e0hZ8kbPWSNNctaYKaGl8Gs=";
2021-07-09 23:06:53 +01:00
};
2021-08-17 07:30:21 +01:00
vendorSha256 = "sha256-ususDOF/LznhK4EInHE7J/ItMjziGfP9Gn8/Q5wd78g=";
2021-07-09 23:06:53 +01: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 ];
};
}