about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/rinetd/default.nix
blob: 07611bba54a58d1b32a387c975b2a7e425e822f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 ];
  };
}