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