edbrowse: Fix compilation against newer libcurl
This commit is contained in:
parent
535a6db25f
commit
721486626a
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "edbrowse-${version}";
|
||||
|
@ -6,7 +6,15 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ curl pcre readline openssl duktape perl html-tidy ];
|
||||
|
||||
patchPhase = ''
|
||||
patches = [
|
||||
# Fix build against recent libcurl
|
||||
(fetchpatch {
|
||||
url = https://github.com/CMB/edbrowse/commit/5d2b9e21fdf019f461ebe62738d615428d5db963.diff;
|
||||
sha256 = "167q8n0syj3iv6lxrbpv4kvb63j4byj4qxrxayy08bah3pss3gky";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for i in ./tools/*.pl
|
||||
do
|
||||
substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"
|
||||
|
|
Loading…
Reference in a new issue