nixpkgs/pkgs/tools/networking/tinyproxy/default.nix

27 lines
794 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, perl, withDebug ? false }:
2018-08-02 10:36:57 +02:00
stdenv.mkDerivation rec {
pname = "tinyproxy";
version = "1.11.0";
2018-08-02 10:36:57 +02:00
src = fetchFromGitHub {
sha256 = "13fhkmmrwzl657dq04x2wagkpjwdrzhkl141qvzr7y7sli8j0w1n";
2019-09-09 01:38:31 +02:00
rev = version;
2018-08-02 10:36:57 +02:00
repo = "tinyproxy";
owner = "tinyproxy";
};
# perl is needed for man page generation.
nativeBuildInputs = [ autoreconfHook perl ];
2018-08-02 10:36:57 +02:00
configureFlags = lib.optionals withDebug [ "--enable-debug" ]; # Enable debugging support code and methods.
2018-08-02 10:36:57 +02:00
meta = with lib; {
homepage = "https://tinyproxy.github.io/";
2018-08-02 10:36:57 +02:00
description = "A light-weight HTTP/HTTPS proxy daemon for POSIX operating systems";
license = licenses.gpl2Only;
2018-08-02 10:36:57 +02:00
platforms = platforms.all;
maintainers = [ maintainers.carlosdagos ];
};
}