@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
1+{ stdenv, fetchFromGitHub, fetchpatch, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
22
33stdenv.mkDerivation rec {
44 name = "edbrowse-${version}";
@@ -6,7 +6,15 @@ stdenv.mkDerivation rec {
66
77 buildInputs = [ curl pcre readline openssl duktape perl html-tidy ];
88
9− patchPhase = ''
9+ patches = [
10+ # Fix build against recent libcurl
11+ (fetchpatch {
12+ url = https://github.com/CMB/edbrowse/commit/5d2b9e21fdf019f461ebe62738d615428d5db963.diff;
13+ sha256 = "167q8n0syj3iv6lxrbpv4kvb63j4byj4qxrxayy08bah3pss3gky";
14+ })
15+ ];
16+
17+ postPatch = ''
1018 for i in ./tools/*.pl
1119 do
1220 substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"