Merge pull request #170097 from vs49688/htmlcxx

authored by Ben Siraphob and committed by GitHub bb2d22e6 73f731e9

+31 -4
+24
pkgs/development/libraries/htmlcxx/c++17.patch
··· 1 + diff --color -Naur a/html/CharsetConverter.cc b/html/CharsetConverter.cc 2 + --- a/html/CharsetConverter.cc 2018-12-29 03:13:56.000000000 +0000 3 + +++ b/html/CharsetConverter.cc 2021-05-31 23:03:10.705334580 +0100 4 + @@ -7,7 +7,7 @@ 5 + using namespace std; 6 + using namespace htmlcxx; 7 + 8 + -CharsetConverter::CharsetConverter(const string &from, const string &to) throw (Exception) 9 + +CharsetConverter::CharsetConverter(const string &from, const string &to) 10 + { 11 + mIconvDescriptor = iconv_open(to.c_str(), from.c_str()); 12 + if (mIconvDescriptor == (iconv_t)(-1)) 13 + diff --color -Naur a/html/CharsetConverter.h b/html/CharsetConverter.h 14 + --- a/html/CharsetConverter.h 2018-12-29 03:13:56.000000000 +0000 15 + +++ b/html/CharsetConverter.h 2021-05-31 23:03:19.042574598 +0100 16 + @@ -17,7 +17,7 @@ 17 + : std::runtime_error(arg) {} 18 + }; 19 + 20 + - CharsetConverter(const std::string &from, const std::string &to) throw (Exception); 21 + + CharsetConverter(const std::string &from, const std::string &to); 22 + ~CharsetConverter(); 23 + 24 + std::string convert(const std::string &input);
+7 -4
pkgs/development/libraries/htmlcxx/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "htmlcxx"; 5 - version = "0.86"; 5 + version = "0.87"; 6 6 7 7 src = fetchurl { 8 - url = "mirror://sourceforge/htmlcxx/htmlcxx/${version}/${pname}-${version}.tar.gz"; 9 - sha256 = "1hgmyiad3qgbpf2dvv2jygzj6jpz4dl3n8ds4nql68a4l9g2nm07"; 8 + url = "mirror://sourceforge/htmlcxx/v${version}/${pname}-${version}.tar.gz"; 9 + sha256 = "sha256-XTj5OM9N+aKYpTRq8nGV//q/759GD8KgIjPLz6j8dcg="; 10 10 }; 11 11 12 12 buildInputs = [ libiconv ]; 13 - patches = [ ./ptrdiff.patch ]; 13 + patches = [ 14 + ./ptrdiff.patch 15 + ./c++17.patch 16 + ]; 14 17 15 18 meta = with lib; { 16 19 homepage = "http://htmlcxx.sourceforge.net/";