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