2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkgconfig, expat
|
2016-06-22 06:32:06 +01:00
|
|
|
, buildsystem
|
|
|
|
, libparserutils
|
|
|
|
, libwapcaplet
|
|
|
|
, libhubbub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-28 07:43:38 +01:00
|
|
|
pname = "netsurf-${libname}";
|
2016-06-22 06:32:06 +01:00
|
|
|
libname = "libdom";
|
2020-09-28 07:43:38 +01:00
|
|
|
version = "0.4.1";
|
2016-06-22 06:32:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.netsurf-browser.org/libs/releases/${libname}-${version}-src.tar.gz";
|
2020-09-28 07:43:38 +01:00
|
|
|
sha256 = "sha256-mO4HJHHlXiCMmHjlFcQQrUYso2+HtK/L7K0CPzos70o=";
|
2016-06-22 06:32:06 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-09-28 07:43:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
expat
|
|
|
|
libhubbub
|
2016-06-22 06:32:06 +01:00
|
|
|
libparserutils
|
|
|
|
libwapcaplet
|
2020-09-28 07:43:38 +01:00
|
|
|
buildsystem ];
|
2016-06-22 06:32:06 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-28 07:43:38 +01:00
|
|
|
homepage = "https://www.netsurf-browser.org/projects/${libname}/";
|
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.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vrthra maintainers.AndersonTorres ];
|
2016-06-22 06:32:06 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|