nixpkgs/pkgs/applications/networking/browsers/netsurf/libhubbub.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.3 KiB
Nix
Raw Normal View History

2023-07-22 15:48:54 +00:00
{ lib
, stdenv
, fetchurl
2024-01-30 21:13:03 +00:00
, gperf
2023-07-22 15:48:54 +00:00
, perl
, pkg-config
2020-09-28 06:40:19 +00:00
, buildsystem
, libparserutils
}:
2023-07-22 15:48:54 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-libhubbub";
2024-01-30 21:13:03 +00:00
version = "0.3.8";
2020-09-28 06:40:19 +00:00
src = fetchurl {
2023-07-22 15:48:54 +00:00
url = "http://download.netsurf-browser.org/libs/releases/libhubbub-${finalAttrs.version}-src.tar.gz";
2024-01-30 21:13:03 +00:00
hash = "sha256-isHm9fPUjAUUHVk5FxlTQpDFnNAp78JJ60/brBAs1aU=";
2020-09-28 06:40:19 +00:00
};
nativeBuildInputs = [ pkg-config ];
2023-07-22 15:48:54 +00:00
2020-09-28 06:40:19 +00:00
buildInputs = [
2024-01-30 21:13:03 +00:00
gperf
2020-09-28 06:40:19 +00:00
perl
2023-07-22 15:48:54 +00:00
buildsystem
2020-09-28 06:40:19 +00:00
libparserutils
2023-07-22 15:48:54 +00:00
];
2020-09-28 06:40:19 +00:00
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
2023-07-22 15:48:54 +00:00
meta = {
2020-09-28 06:40:19 +00: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.
'';
2023-07-22 15:48:54 +00:00
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
2020-09-28 06:40:19 +00:00
};
2023-07-22 15:48:54 +00:00
})