depot/pkgs/applications/networking/browsers/netsurf/libdom.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, expat
, pkg-config
, buildsystem
, libparserutils
, libwapcaplet
, libhubbub
}:
stdenv.mkDerivation (finalAttrs: {
pname = "netsurf-libdom";
version = "0.4.2";
src = fetchurl {
url = "http://download.netsurf-browser.org/libs/releases/libdom-${finalAttrs.version}-src.tar.gz";
hash = "sha256-0F5FrxZUcBTCsKOuzzZw+hPUGfUFs/X8esihSR/DDzw=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
expat
buildsystem
libhubbub
libparserutils
libwapcaplet
];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];
meta = {
homepage = "https://www.netsurf-browser.org/projects/libdom/";
description = "Document Object Model library for netsurf browser";
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 = lib.licenses.mit;
inherit (buildsystem.meta) maintainers platforms;
};
})