Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 gperf, 6 perl, 7 pkg-config, 8 buildsystem, 9 libparserutils, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "netsurf-libhubbub"; 14 version = "0.3.8"; 15 16 src = fetchurl { 17 url = "http://download.netsurf-browser.org/libs/releases/libhubbub-${finalAttrs.version}-src.tar.gz"; 18 hash = "sha256-isHm9fPUjAUUHVk5FxlTQpDFnNAp78JJ60/brBAs1aU="; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 23 buildInputs = [ 24 gperf 25 perl 26 buildsystem 27 libparserutils 28 ]; 29 30 makeFlags = [ 31 "PREFIX=$(out)" 32 "NSSHARED=${buildsystem}/share/netsurf-buildsystem" 33 ]; 34 35 meta = { 36 homepage = "https://www.netsurf-browser.org/projects/hubbub/"; 37 description = "HTML5 parser library for netsurf browser"; 38 longDescription = '' 39 Hubbub is an HTML5 compliant parsing library, written in C. It was 40 developed as part of the NetSurf project and is available for use by other 41 software under the MIT licence. 42 43 The HTML5 specification defines a parsing algorithm, based on the 44 behaviour of mainstream browsers, which provides instructions for how to 45 parse all markup, both valid and invalid. As a result, Hubbub parses web 46 content well. 47 ''; 48 license = lib.licenses.mit; 49 inherit (buildsystem.meta) maintainers platforms; 50 }; 51})