Skip to content

Commit

Permalink
edbrowse: Fix compilation against newer libcurl
Browse files Browse the repository at this point in the history
  • Loading branch information
endgame authored and worldofpeace committed Jan 6, 2019
1 parent 535a6db commit 7214866
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/applications/editors/edbrowse/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{ 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}";
version = "3.7.4";

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"
Expand Down

0 comments on commit 7214866

Please sign in to comment.