aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix
new file mode 100644
index 000000000000..53b8d270d4f6
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchurl, pkgconfig, perl
+, 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=";
+ };
+
+ nativeBuildInputs = [ pkgconfig ];
+ buildInputs = [
+ perl
+ libparserutils
+ buildsystem ];
+
+ makeFlags = [
+ "PREFIX=$(out)"
+ "NSSHARED=${buildsystem}/share/netsurf-buildsystem"
+ ];
+
+ meta = with stdenv.lib; {
+ 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;
+ };
+}