python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / norouter / default.nix
blobe0f6a8f3aee2f01592c8ce9eeb531041a9d194ac
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "norouter";
8   version = "0.6.4";
10   src = fetchFromGitHub {
11     owner = "norouter";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "0h5jzxm4fw50781zj76r5ksnxkzsnrygrykpa913v9nd24c09c7m";
15   };
17   vendorSha256 = "sha256-DZ2kcNV8AzNogAUTaeus4rz9gCFo0wm306jcz/cAj0M=";
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     description = "Tool to handle unprivileged networking by using multiple loopback addresses";
31     homepage = "https://github.com/norouter/norouter";
32     license = licenses.asl20;
33     maintainers = with maintainers; [ blaggacao ];
34   };