headscale: 0.25.0 -> 0.25.1 (#385346)

This commit is contained in:
Sandro
2025-02-27 20:40:04 +01:00
committed by GitHub
+11 -4
View File
@@ -3,18 +3,21 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
iana-etc,
libredirect,
nixosTests,
postgresql,
stdenv,
}:
buildGoModule rec {
pname = "headscale";
version = "0.25.0";
version = "0.25.1";
src = fetchFromGitHub {
owner = "juanfont";
repo = "headscale";
rev = "v${version}";
hash = "sha256-5CwaPaGh0yvHwmSpbsvc4ajkW9RbYVMilNTIJxeYcIs=";
tag = "v${version}";
hash = "sha256-CrdMxRAgrDE1lJ3v9AhCN+cKOVqmIVwjE0x+msSVT+c=";
};
vendorHash = "sha256-ZQj2A0GdLhHc7JLW7qgpGBveXXNWg9ueSG47OZQQXEw=";
@@ -29,10 +32,14 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [ postgresql ];
nativeCheckInputs = [ libredirect.hook postgresql ];
checkFlags = ["-short"];
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/services=${iana-etc}/etc/services
'';
postInstall = ''
installShellCompletion --cmd headscale \
--bash <($out/bin/headscale completion bash) \