libssh2: fix broken patch hash

Patches from direct URLs on github are not stable (comment headers change w/
server settings), hence why we usually use `fetchpatch`. In lieu of that, vendor
the unstable patch.
This commit is contained in:
Benjamin Hipple
2020-06-01 16:53:32 -04:00
committed by Frederik Rietdijk
parent d89c58a012
commit 62ee86086c
2 changed files with 212 additions and 6 deletions

View File

@@ -15,12 +15,8 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
patches = [
# not able to use fetchpatch here: infinite recursion
(fetchurl {
name = "CVE-2019-17498.patch";
url = "https://github.com/libssh2/libssh2/pull/402.patch";
sha256 = "1n9s2mcz5dkw0xpm3c5x4hzj8bar4i6z0pr1rmqjplhfg888vdvc";
})
# Not able to use fetchpatch here: infinite recursion
./CVE-2019-17498.patch
];
meta = with stdenv.lib; {