freeradius: add patch for HTTP/2 support in rlm_rest module

Co-Authored-By: Franz Pletz <franz.pletz@mayflower.de>
Co-Authored-By: Simon Waibl <simon.waibl@mayflower.de>
This commit is contained in:
Linus Heckemann 2020-02-27 17:59:01 +01:00
parent 82b54d4906
commit 0e474f2d26

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, talloc, finger_bsd, perl
{ stdenv, fetchurl, fetchpatch, autoreconfHook, talloc, finger_bsd, perl
, openssl
, linkOpenssl? true
, openldap
@ -71,6 +71,12 @@ stdenv.mkDerivation rec {
"--localstatedir=/var"
] ++ optional (!linkOpenssl) "--with-openssl=no";
patches = stdenv.lib.optional withRest (fetchpatch {
# Fix HTTP/2 in rest
url = "https://github.com/FreeRADIUS/freeradius-server/commit/6286520698a3cc4053b4d49eb0a61d9ba77632aa.patch";
sha256 = "1ycvr3ql1mfkvzydnn4aiygnidicv2hgllppv37nb1p2pk02159g";
});
postPatch = ''
substituteInPlace src/main/checkrad.in --replace "/usr/bin/finger" "${finger_bsd}/bin/finger"
'';