Unverified Commit 0f8d6add authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

headscale: 0.25.0 -> 0.25.1 (#385346)

parents 871a887b b343f7a1
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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) \