git.iko.soy/typeable/nixpkgs
on master help sign in
edbrowse: Fix compilation against newer libcurl
commit721486626a46dd7913755ae50a8128fd585b6e2c authorJack Kelly <jack@jackkelly.name> dateSat 5 Jan 2019, 11:00 (8 years ago) parent535a6db
1 file changed+10−2
pkgs/applications/editors/edbrowse/default.nix+10−2
pkgs/applications/editors/edbrowse/default.nix+10−2
@@ -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"