at 23.05-pre 41 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, autoreconfHook 6, perl 7, withDebug ? false 8}: 9 10stdenv.mkDerivation rec { 11 pname = "tinyproxy"; 12 version = "1.11.1"; 13 14 src = fetchFromGitHub { 15 sha256 = "sha256-tipFXh9VG5auWTI2/IC5rwMQFls7aZr6dkzhYTZZkXM="; 16 rev = version; 17 repo = "tinyproxy"; 18 owner = "tinyproxy"; 19 }; 20 21 patches = [ 22 (fetchpatch { 23 name = "CVE-2022-40468.patch"; 24 url = "https://github.com/tinyproxy/tinyproxy/commit/3764b8551463b900b5b4e3ec0cd9bb9182191cb7.patch"; 25 sha256 = "sha256-P0c4mUK227ld3703ss5MQhi8Vo2QVTCVXhKmc9fcufk="; 26 }) 27 ]; 28 29 # perl is needed for man page generation. 30 nativeBuildInputs = [ autoreconfHook perl ]; 31 32 configureFlags = lib.optionals withDebug [ "--enable-debug" ]; # Enable debugging support code and methods. 33 34 meta = with lib; { 35 homepage = "https://tinyproxy.github.io/"; 36 description = "A light-weight HTTP/HTTPS proxy daemon for POSIX operating systems"; 37 license = licenses.gpl2Only; 38 platforms = platforms.all; 39 maintainers = [ maintainers.carlosdagos ]; 40 }; 41}