33 lines
787 B
Nix
33 lines
787 B
Nix
{ lib, stdenv, fetchurl, autoreconfHook, zlib, pcre, w3m, man }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "privoxy";
|
|
version = "3.0.31";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ijbswa/Sources/${version}%20%28stable%29/${pname}-${version}-stable-src.tar.gz";
|
|
sha256 = "sha256-B3cpo6rHkiKk6NiKZQ2QKNFv1LDWA42o9fXkcSDQBOs=";
|
|
};
|
|
|
|
hardeningEnable = [ "pie" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook w3m man ];
|
|
buildInputs = [ zlib pcre ];
|
|
|
|
makeFlags = [ "STRIP="];
|
|
|
|
postInstall = ''
|
|
rm -rf $out/var
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.privoxy.org/";
|
|
description = "Non-caching web proxy with advanced filtering capabilities";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.phreedom ];
|
|
};
|
|
|
|
}
|