nixpkgs/pkgs/tools/networking/norouter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
821 B
Nix
Raw Normal View History

2022-06-12 22:37:51 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "norouter";
2022-12-10 17:06:32 +00:00
version = "0.6.5";
2022-06-12 22:37:51 +01:00
src = fetchFromGitHub {
owner = "norouter";
repo = pname;
rev = "v${version}";
2022-12-10 17:06:32 +00:00
sha256 = "sha256-EY/Yfyaz2DeQKHJ4awpQDbrVkse9crIZlLzfviPy3Tk=";
2022-06-12 22:37:51 +01:00
};
vendorHash = "sha256-RxrmYfEm1Maq8byoLXUr5RfXcwgqpCcAq5enMnl9V9E=";
2022-06-12 22:37:51 +01:00
subPackages = [ "cmd/norouter" ];
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/norouter --version | grep ${version} > /dev/null
runHook postInstallCheck
'';
meta = with lib; {
description = "Tool to handle unprivileged networking by using multiple loopback addresses";
homepage = "https://github.com/norouter/norouter";
license = licenses.asl20;
maintainers = with maintainers; [ blaggacao ];
};
}