2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, perl
|
2020-09-28 08:40:19 +02:00
|
|
|
, buildsystem
|
|
|
|
, libparserutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "netsurf-${libname}";
|
|
|
|
libname = "libhubbub";
|
|
|
|
version = "0.3.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
|
|
|
sha256 = "sha256-nnriU+bJBp51frmtTkhG84tNtSwMoBUURqn6Spd3NbY=";
|
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-09-28 08:40:19 +02:00
|
|
|
buildInputs = [
|
|
|
|
perl
|
|
|
|
libparserutils
|
|
|
|
buildsystem ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-09-28 08:40:19 +02:00
|
|
|
homepage = "https://www.netsurf-browser.org/projects/hubbub/";
|
|
|
|
description = "HTML5 parser library for netsurf browser";
|
|
|
|
longDescription = ''
|
|
|
|
Hubbub is an HTML5 compliant parsing library, written in C. It was
|
|
|
|
developed as part of the NetSurf project and is available for use by other
|
|
|
|
software under the MIT licence.
|
|
|
|
|
|
|
|
The HTML5 specification defines a parsing algorithm, based on the
|
|
|
|
behaviour of mainstream browsers, which provides instructions for how to
|
|
|
|
parse all markup, both valid and invalid. As a result, Hubbub parses web
|
|
|
|
content well.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|