From ab5623a718f7b6dd582e1c0fe4a590a5783a299e Mon Sep 17 00:00:00 2001 From: Janik H Date: Sun, 28 May 2023 00:54:53 +0200 Subject: [PATCH] rinetd: init at 0.73 --- pkgs/servers/rinetd/default.nix | 40 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/servers/rinetd/default.nix 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 51898095899d..334b9fcb3eda 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -38652,6 +38652,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; };