Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 26 lines 667 B view raw
1{ lib, stdenv, fetchurl, autoreconfHook, libiconv }: 2 3stdenv.mkDerivation rec { 4 pname = "htmlcxx"; 5 version = "0.87"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/htmlcxx/v${version}/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-XTj5OM9N+aKYpTRq8nGV//q/759GD8KgIjPLz6j8dcg="; 10 }; 11 12 nativeBuildInputs = [ autoreconfHook ]; 13 buildInputs = [ libiconv ]; 14 patches = [ 15 ./ptrdiff.patch 16 ./c++17.patch 17 ]; 18 19 meta = with lib; { 20 homepage = "https://htmlcxx.sourceforge.net/"; 21 description = "Simple non-validating css1 and html parser for C++"; 22 mainProgram = "htmlcxx"; 23 license = licenses.lgpl2; 24 platforms = platforms.all; 25 }; 26}