1{
2 lib,
3 stdenv,
4 fetchurl,
5 autoreconfHook,
6 libiconv,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "htmlcxx";
11 version = "0.87";
12
13 src = fetchurl {
14 url = "mirror://sourceforge/htmlcxx/v${version}/${pname}-${version}.tar.gz";
15 sha256 = "sha256-XTj5OM9N+aKYpTRq8nGV//q/759GD8KgIjPLz6j8dcg=";
16 };
17
18 nativeBuildInputs = [ autoreconfHook ];
19 buildInputs = [ libiconv ];
20 patches = [
21 ./ptrdiff.patch
22 ./c++17.patch
23 ];
24
25 meta = with lib; {
26 homepage = "https://htmlcxx.sourceforge.net/";
27 description = "Simple non-validating css1 and html parser for C++";
28 mainProgram = "htmlcxx";
29 license = licenses.lgpl2;
30 platforms = platforms.all;
31 };
32}