diff options
author | Carlos D <carlos.dagostino@gmail.com> | 2018-08-02 18:36:57 +1000 |
---|---|---|
committer | Carlos D <carlos.dagostino@gmail.com> | 2018-08-02 18:36:57 +1000 |
commit | c431713f999f28c4a97f78a6655394fd24c3f532 (patch) | |
tree | 08c0cbf619194e99f660b96a6766210bd2e6abe6 /pkgs/tools/networking | |
parent | 737fdd73482715c2dd0d3fe77ed49254eaa11c97 (diff) | |
download | nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.tar nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.tar.gz nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.tar.bz2 nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.tar.lz nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.tar.xz nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.tar.zst nixlib-c431713f999f28c4a97f78a6655394fd24c3f532.zip |
tinyproxy: init at 1.8.4
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/tinyproxy/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/tools/networking/tinyproxy/default.nix b/pkgs/tools/networking/tinyproxy/default.nix new file mode 100644 index 000000000000..b4a2db8a9706 --- /dev/null +++ b/pkgs/tools/networking/tinyproxy/default.nix @@ -0,0 +1,53 @@ +{ stdenv, fetchFromGitHub, automake, autoreconfHook, asciidoc, libxml2, libxslt }: + +stdenv.mkDerivation rec{ + name = "tinyproxy-${version}"; + version = "1.8.4"; + + src = fetchFromGitHub { + sha256 = "043mfqin5bsba9igm1lqbkp2spibk4j3niyjqc868cnzgx60709c"; + rev = "${version}"; + repo = "tinyproxy"; + owner = "tinyproxy"; + }; + + nativeBuildInputs = [ autoreconfHook asciidoc libxml2 libxslt ]; + + # -z flag is not supported in darwin + preAutoreconf = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace configure.ac --replace \ + 'LDFLAGS="-Wl,-z,defs $LDFLAGS"' \ + 'LDFLAGS="-Wl, $LDFLAGS"' + ''; + + # See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=154624 + postConfigure = '' + substituteInPlace docs/man5/Makefile --replace \ + "-f manpage" \ + "-f manpage \\ + -L" + substituteInPlace docs/man8/Makefile --replace \ + "-f manpage" \ + "-f manpage \\ + -L" + ''; + + configureFlags = [ + "--disable-debug" # Turn off debugging + "--enable-xtinyproxy" # Compile in support for the XTinyproxy header, which is sent to any web server in your domain. + "--enable-filter" # Allows Tinyproxy to filter out certain domains and URLs. + "--enable-upstream" # Enable support for proxying connections through another proxy server. + "--enable-transparent" # Allow Tinyproxy to be used as a transparent proxy daemon. + "--enable-reverse" # Enable reverse proxying. + ] ++ + # See: https://github.com/tinyproxy/tinyproxy/issues/1 + stdenv.lib.optional stdenv.isDarwin "--disable-regexcheck"; + + meta = with stdenv.lib; { + homepage = https://tinyproxy.github.io/; + description = "A light-weight HTTP/HTTPS proxy daemon for POSIX operating systems"; + license = licenses.gpl2; + platforms = platforms.all; + maintainers = [ maintainers.carlosdagos ]; + }; +} |