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

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2021-03-03 17:18:09 +01:00
, nixosTests
, fetchurl, autoreconfHook
, zlib, pcre, w3m, man
, openssl, brotli
}:
stdenv.mkDerivation rec {
pname = "privoxy";
2021-03-02 00:37:27 +01:00
version = "3.0.32";
src = fetchurl {
url = "mirror://sourceforge/ijbswa/Sources/${version}%20%28stable%29/${pname}-${version}-stable-src.tar.gz";
2021-03-02 00:37:27 +01:00
sha256 = "sha256-xh3kAIxiRF7Bjx8nBAfL8jcuq6k76szcnjI4uy3v7tc=";
};
2016-12-06 14:29:29 +01:00
hardeningEnable = [ "pie" ];
nativeBuildInputs = [ autoreconfHook w3m man ];
buildInputs = [ zlib pcre openssl brotli ];
makeFlags = [ "STRIP=" ];
configureFlags = [
"--with-openssl"
"--with-brotli"
"--enable-external-filters"
"--enable-compression"
];
postInstall = ''
rm -r $out/var
'';
2021-03-03 17:18:09 +01:00
passthru.tests.privoxy = nixosTests.privoxy;
meta = with lib; {
homepage = "https://www.privoxy.org/";
description = "Non-caching web proxy with advanced filtering capabilities";
# When linked with mbedtls, the license becomes GPLv3 (or later), otherwise
# GPLv2 (or later). See https://www.privoxy.org/user-manual/copyright.html
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = [ maintainers.phreedom ];
};
}