2023-07-22 16:31:05 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, expat
|
|
|
|
, pkg-config
|
2016-06-22 06:32:06 +01:00
|
|
|
, buildsystem
|
|
|
|
, libparserutils
|
|
|
|
, libwapcaplet
|
|
|
|
, libhubbub
|
|
|
|
}:
|
|
|
|
|
2023-07-22 16:31:05 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "netsurf-libdom";
|
2024-01-30 21:10:01 +00:00
|
|
|
version = "0.4.2";
|
2016-06-22 06:32:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-22 16:31:05 +01:00
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/libdom-${finalAttrs.version}-src.tar.gz";
|
2024-01-30 21:10:01 +00:00
|
|
|
hash = "sha256-0F5FrxZUcBTCsKOuzzZw+hPUGfUFs/X8esihSR/DDzw=";
|
2016-06-22 06:32:06 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-07-22 16:31:05 +01:00
|
|
|
|
2020-09-28 07:43:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
expat
|
2023-07-22 16:31:05 +01:00
|
|
|
buildsystem
|
2020-09-28 07:43:38 +01:00
|
|
|
libhubbub
|
2016-06-22 06:32:06 +01:00
|
|
|
libparserutils
|
|
|
|
libwapcaplet
|
2023-07-22 16:31:05 +01:00
|
|
|
];
|
2016-06-22 06:32:06 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2023-07-22 16:31:05 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "https://www.netsurf-browser.org/projects/libdom/";
|
2016-06-22 06:32:06 +01:00
|
|
|
description = "Document Object Model library for netsurf browser";
|
2020-09-28 07:43:38 +01:00
|
|
|
longDescription = ''
|
|
|
|
LibDOM is an implementation of the W3C DOM, written in C. It is currently
|
|
|
|
in development for use with NetSurf and is intended to be suitable for use
|
|
|
|
in other projects under a more permissive license.
|
|
|
|
'';
|
2023-07-22 16:31:05 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
inherit (buildsystem.meta) maintainers platforms;
|
2016-06-22 06:32:06 +01:00
|
|
|
};
|
2023-07-22 16:31:05 +01:00
|
|
|
})
|