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

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

48 lines
1.1 KiB
Nix
Raw Normal View History

2023-07-22 15:31:05 +00:00
{ lib
, stdenv
, fetchurl
, expat
, pkg-config
2016-06-22 05:32:06 +00:00
, buildsystem
, libparserutils
, libwapcaplet
, libhubbub
}:
2023-07-22 15:31:05 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-libdom";
2024-01-30 21:10:01 +00:00
version = "0.4.2";
2016-06-22 05:32:06 +00:00
src = fetchurl {
2023-07-22 15:31:05 +00: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 05:32:06 +00:00
};
nativeBuildInputs = [ pkg-config ];
2023-07-22 15:31:05 +00:00
2020-09-28 06:43:38 +00:00
buildInputs = [
expat
2023-07-22 15:31:05 +00:00
buildsystem
2020-09-28 06:43:38 +00:00
libhubbub
2016-06-22 05:32:06 +00:00
libparserutils
libwapcaplet
2023-07-22 15:31:05 +00:00
];
2016-06-22 05:32:06 +00:00
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
2023-07-22 15:31:05 +00:00
meta = {
homepage = "https://www.netsurf-browser.org/projects/libdom/";
2016-06-22 05:32:06 +00:00
description = "Document Object Model library for netsurf browser";
2020-09-28 06:43:38 +00: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 15:31:05 +00:00
license = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
2016-06-22 05:32:06 +00:00
};
2023-07-22 15:31:05 +00:00
})