Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 autoreconfHook,
4 fetchFromGitHub,
5 rinetd,
6 stdenv,
7 testers,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "rinetd";
12 version = "0.73";
13
14 src = fetchFromGitHub {
15 owner = "samhocevar";
16 repo = "rinetd";
17 rev = "v${version}";
18 hash = "sha256-W8PLGd3RwmBTh1kw3k8+ZfP6AzRhZORCkxZzQ9ZbPN4=";
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 ];
24
25 preConfigure = ''
26 ./bootstrap
27 '';
28
29 passthru.tests.version = testers.testVersion {
30 package = rinetd;
31 command = "rinetd --version";
32 };
33
34 meta = with lib; {
35 description = "TCP/UDP port redirector";
36 homepage = "https://github.com/samhocevar/rinetd";
37 changelog = "https://github.com/samhocevar/rinetd/blob/${src.rev}/CHANGES.md";
38 license = licenses.gpl2Plus;
39 maintainers = [ ];
40 mainProgram = "rinetd";
41 };
42}