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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2021-03-03 16:18:09 +00:00
, nixosTests
, fetchpatch
, fetchurl, autoreconfHook
, zlib, pcre, w3m, man
, openssl, brotli
}:
stdenv.mkDerivation rec {
pname = "privoxy";
2023-03-08 19:30:46 +00:00
version = "3.0.34";
src = fetchurl {
url = "mirror://sourceforge/ijbswa/Sources/${version}%20%28stable%29/${pname}-${version}-stable-src.tar.gz";
2023-03-08 19:30:46 +00:00
sha256 = "sha256-5sy8oWVvTmFrRlf4UU4zpw9ml+nXKUNWV3g5Mio8XSw=";
};
# Patch to fix socks4 and socks4a support under glibc's source fortification
# (enabled by default since glibc 2.38-0)
patches = [
(fetchpatch {
url = "https://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=19d7684ca10f6c1279568aa19e9a9da2276851f1";
sha256 = "sha256-bCb0RUVrWeGfqZYFHXDEEx+76xiNyVqehtLvk9C1j+4=";
})
];
2016-12-06 13:29:29 +00: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 16:18:09 +00: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;
2021-12-18 09:25:46 +00:00
maintainers = [ ];
2024-02-11 02:19:15 +00:00
mainProgram = "privoxy";
};
}