rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / norouter / default.nix
blobefc50fbad2ad030919bc902b4cb87b430a02d71c
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "norouter";
8   version = "0.6.5";
10   src = fetchFromGitHub {
11     owner = "norouter";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "sha256-EY/Yfyaz2DeQKHJ4awpQDbrVkse9crIZlLzfviPy3Tk=";
15   };
17   vendorHash = "sha256-RxrmYfEm1Maq8byoLXUr5RfXcwgqpCcAq5enMnl9V9E=";
19   subPackages = [ "cmd/norouter" ];
20   doInstallCheck = true;
21   installCheckPhase = ''
22     runHook preInstallCheck
24     $out/bin/norouter --version | grep ${version} > /dev/null
26     runHook postInstallCheck
27   '';
29   meta = with lib; {
30     # Doesn't build with Go >=1.21
31     # https://github.com/norouter/norouter/issues/165
32     broken = true;
33     description = "Tool to handle unprivileged networking by using multiple loopback addresses";
34     homepage = "https://github.com/norouter/norouter";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ blaggacao ];
37     mainProgram = "norouter";
38   };