mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
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:
parent
838e29d236
commit
f5eea8ba1d
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user