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