2021-03-03 13:09:27 +00:00
|
|
|
{ lib, stdenv
|
2021-03-03 16:18:09 +00:00
|
|
|
, nixosTests
|
2021-03-03 13:09:27 +00:00
|
|
|
, fetchurl, autoreconfHook
|
|
|
|
, zlib, pcre, w3m, man
|
|
|
|
, mbedtls, brotli
|
|
|
|
}:
|
2009-10-05 15:15:28 +01:00
|
|
|
|
2020-06-07 22:11:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-30 14:21:20 +00:00
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "privoxy";
|
2021-03-01 23:37:27 +00:00
|
|
|
version = "3.0.32";
|
2009-10-05 15:15:28 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/ijbswa/Sources/${version}%20%28stable%29/${pname}-${version}-stable-src.tar.gz";
|
2021-03-01 23:37:27 +00:00
|
|
|
sha256 = "sha256-xh3kAIxiRF7Bjx8nBAfL8jcuq6k76szcnjI4uy3v7tc=";
|
2009-10-05 15:15:28 +01:00
|
|
|
};
|
|
|
|
|
2016-12-06 13:29:29 +00:00
|
|
|
hardeningEnable = [ "pie" ];
|
|
|
|
|
2016-12-05 12:13:12 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook w3m man ];
|
2021-03-03 13:09:27 +00:00
|
|
|
buildInputs = [ zlib pcre mbedtls brotli ];
|
2016-12-05 12:13:12 +00:00
|
|
|
|
2021-03-03 13:09:27 +00:00
|
|
|
makeFlags = [ "STRIP=" ];
|
|
|
|
configureFlags = [
|
|
|
|
"--with-mbedtls"
|
|
|
|
"--with-brotli"
|
|
|
|
"--enable-external-filters"
|
|
|
|
"--enable-compression"
|
|
|
|
];
|
2017-08-03 22:17:30 +01:00
|
|
|
|
2016-12-05 12:13:12 +00:00
|
|
|
postInstall = ''
|
2021-03-03 13:09:27 +00:00
|
|
|
rm -r $out/var
|
2016-12-05 12:13:12 +00:00
|
|
|
'';
|
2009-10-05 15:15:28 +01:00
|
|
|
|
2021-03-03 16:18:09 +00:00
|
|
|
passthru.tests.privoxy = nixosTests.privoxy;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.privoxy.org/";
|
2013-12-04 02:41:25 +00:00
|
|
|
description = "Non-caching web proxy with advanced filtering capabilities";
|
2021-03-03 13:09:27 +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
|
|
|
|
license = licenses.gpl3Plus;
|
2013-12-04 02:41:25 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
};
|
2016-01-30 14:21:20 +00:00
|
|
|
|
2009-10-05 15:15:28 +01:00
|
|
|
}
|