diff --git a/pkgs/servers/rinetd/default.nix b/pkgs/servers/rinetd/default.nix new file mode 100644 index 000000000000..07611bba54a5 --- /dev/null +++ b/pkgs/servers/rinetd/default.nix @@ -0,0 +1,40 @@ +{ lib +, autoreconfHook +, fetchFromGitHub +, rinetd +, stdenv +, testers +}: + +stdenv.mkDerivation rec { + pname = "rinetd"; + version = "0.73"; + + src = fetchFromGitHub { + owner = "samhocevar"; + repo = "rinetd"; + rev = "v${version}"; + hash = "sha256-W8PLGd3RwmBTh1kw3k8+ZfP6AzRhZORCkxZzQ9ZbPN4="; + }; + + nativeBuildInputs = [ + autoreconfHook + ]; + + preConfigure = '' + ./bootstrap + ''; + + passthru.tests.version = testers.testVersion { + package = rinetd; + command = "rinetd --version"; + }; + + meta = with lib; { + description = "TCP/UDP port redirector"; + homepage = "https://github.com/samhocevar/rinetd"; + changelog = "https://github.com/samhocevar/rinetd/blob/${src.rev}/CHANGES.md"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ janik ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8dc19e94c7fa..d004d93bd8eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39242,6 +39242,8 @@ with pkgs; stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv; }); + rinetd = callPackage ../servers/rinetd { }; + rink = callPackage ../applications/science/misc/rink { inherit (darwin.apple_sdk.frameworks) Security; };