nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 936 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 perl, 7 nixosTests, 8 withDebug ? false, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "tinyproxy"; 13 version = "1.11.2"; 14 15 src = fetchFromGitHub { 16 hash = "sha256-bpr/O723FmW2gb+85aJrwW5/U7R2HwbePTx15i3rpsE="; 17 rev = finalAttrs.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 = { 32 homepage = "https://tinyproxy.github.io/"; 33 description = "Light-weight HTTP/HTTPS proxy daemon for POSIX operating systems"; 34 license = lib.licenses.gpl2Only; 35 platforms = lib.platforms.all; 36 maintainers = [ lib.maintainers.carlosdagos ]; 37 mainProgram = "tinyproxy"; 38 }; 39})