libevent: apply security patches from Debian

/cc #23072.  As with curl, it's nontrivial rebuild but security...
https://lwn.net/Alerts/714571/
This commit is contained in:
Vladimír Čunát 2017-02-22 18:56:56 +01:00
parent 838e29d236
commit f5eea8ba1d
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -9,6 +9,20 @@ stdenv.mkDerivation {
sha256 = "18qz9qfwrkakmazdlwxvjmw8p76g70n3faikwvdwznns1agw9hki";
};
prePatch = let
# https://lwn.net/Vulnerabilities/714581/
debian = fetchurl {
url = "http://http.debian.net/debian/pool/main/libe/libevent/"
+ "libevent_2.0.21-stable-3.debian.tar.xz";
sha256 = "0b2syswiq3cvfbdvi4lbca15c31lilxnahax4a4b4qxi5fcab7h5";
};
in ''
tar xf '${debian}'
patches="$patches $(cat debian/patches/series | grep -v '^$\|^#' \
| grep -v '^20d6d445.patch' \
| grep -v '^dh-autoreconf' | sed 's|^|debian/patches/|')"
'';
outputs = [ "out" "dev" ];
outputBin = "dev";