diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/htmlcxx')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/htmlcxx/default.nix | 21 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/htmlcxx/ptrdiff.patch | 13 |
2 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/htmlcxx/default.nix b/nixpkgs/pkgs/development/libraries/htmlcxx/default.nix new file mode 100644 index 000000000000..d9072e46e407 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/htmlcxx/default.nix @@ -0,0 +1,21 @@ +{ lib, stdenv, fetchurl, libiconv }: + +stdenv.mkDerivation rec { + pname = "htmlcxx"; + version = "0.86"; + + src = fetchurl { + url = "mirror://sourceforge/htmlcxx/htmlcxx/${version}/${pname}-${version}.tar.gz"; + sha256 = "1hgmyiad3qgbpf2dvv2jygzj6jpz4dl3n8ds4nql68a4l9g2nm07"; + }; + + buildInputs = [ libiconv ]; + patches = [ ./ptrdiff.patch ]; + + meta = with lib; { + homepage = "http://htmlcxx.sourceforge.net/"; + description = "A simple non-validating css1 and html parser for C++"; + license = licenses.lgpl2; + platforms = platforms.all; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/htmlcxx/ptrdiff.patch b/nixpkgs/pkgs/development/libraries/htmlcxx/ptrdiff.patch new file mode 100644 index 000000000000..6348ba24f8da --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/htmlcxx/ptrdiff.patch @@ -0,0 +1,13 @@ +diff -rc htmlcxx-orig-0.85/html/tree.h htmlcxx-0.85/html/tree.h +*** htmlcxx-orig-0.85/html/tree.h 2015-09-02 13:57:17.988688798 +0200 +--- htmlcxx-0.85/html/tree.h 2015-09-02 13:57:52.737768811 +0200 +*************** +*** 45,50 **** +--- 45,51 ---- + #ifndef tree_hh_ + #define tree_hh_ + ++ #include <cstddef> + #include <cassert> + #include <memory> + #include <stdexcept> |