2022-09-20 20:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
|
|
|
, perl
|
|
|
|
, withDebug ? false
|
|
|
|
}:
|
2018-08-02 08:36:57 +00:00
|
|
|
|
2020-06-07 21:11:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tinyproxy";
|
2022-07-31 03:34:40 +00:00
|
|
|
version = "1.11.1";
|
2018-08-02 08:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-31 03:34:40 +00:00
|
|
|
sha256 = "sha256-tipFXh9VG5auWTI2/IC5rwMQFls7aZr6dkzhYTZZkXM=";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2018-08-02 08:36:57 +00:00
|
|
|
repo = "tinyproxy";
|
|
|
|
owner = "tinyproxy";
|
|
|
|
};
|
|
|
|
|
2022-09-20 20:49:53 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2022-40468.patch";
|
|
|
|
url = "https://github.com/tinyproxy/tinyproxy/commit/3764b8551463b900b5b4e3ec0cd9bb9182191cb7.patch";
|
|
|
|
sha256 = "sha256-P0c4mUK227ld3703ss5MQhi8Vo2QVTCVXhKmc9fcufk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-19 07:42:04 +00:00
|
|
|
# perl is needed for man page generation.
|
|
|
|
nativeBuildInputs = [ autoreconfHook perl ];
|
2018-08-02 08:36:57 +00:00
|
|
|
|
2021-05-19 07:42:04 +00:00
|
|
|
configureFlags = lib.optionals withDebug [ "--enable-debug" ]; # Enable debugging support code and methods.
|
2018-08-02 08:36:57 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tinyproxy.github.io/";
|
2018-08-02 08:36:57 +00:00
|
|
|
description = "A light-weight HTTP/HTTPS proxy daemon for POSIX operating systems";
|
2021-05-19 07:42:04 +00:00
|
|
|
license = licenses.gpl2Only;
|
2018-08-02 08:36:57 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.carlosdagos ];
|
|
|
|
};
|
|
|
|
}
|