mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, nixosTests
|
|
, fetchurl, autoreconfHook
|
|
, zlib, pcre, w3m, man
|
|
, openssl, brotli
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "privoxy";
|
|
version = "3.0.34";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ijbswa/Sources/${version}%20%28stable%29/${pname}-${version}-stable-src.tar.gz";
|
|
sha256 = "sha256-5sy8oWVvTmFrRlf4UU4zpw9ml+nXKUNWV3g5Mio8XSw=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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 = [ ];
|
|
};
|
|
|
|
}
|