Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 perl, 7 nixosTests, 8 withDebug ? false, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "tinyproxy"; 13 version = "1.11.2"; 14 15 src = fetchFromGitHub { 16 hash = "sha256-bpr/O723FmW2gb+85aJrwW5/U7R2HwbePTx15i3rpsE="; 17 rev = version; 18 repo = "tinyproxy"; 19 owner = "tinyproxy"; 20 }; 21 22 # perl is needed for man page generation. 23 nativeBuildInputs = [ 24 autoreconfHook 25 perl 26 ]; 27 28 configureFlags = lib.optionals withDebug [ "--enable-debug" ]; # Enable debugging support code and methods. 29 passthru.tests = { inherit (nixosTests) tinyproxy; }; 30 31 meta = with lib; { 32 homepage = "https://tinyproxy.github.io/"; 33 description = "Light-weight HTTP/HTTPS proxy daemon for POSIX operating systems"; 34 license = licenses.gpl2Only; 35 platforms = platforms.all; 36 maintainers = [ maintainers.carlosdagos ]; 37 mainProgram = "tinyproxy"; 38 }; 39}