Files
nixpkgs/pkgs/by-name/li/libdom/package.nix
Lisanna Dettwyler 1accb5b53a libdom: vendor patch (no longer exists on server)
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-05-22 09:23:50 -04:00

61 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
expat,
pkg-config,
netsurf-buildsystem,
libparserutils,
libwapcaplet,
libhubbub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libdom";
version = "0.4.2";
src = fetchurl {
url = "https://download.netsurf-browser.org/libs/releases/libdom-${finalAttrs.version}-src.tar.gz";
hash = "sha256-0F5FrxZUcBTCsKOuzzZw+hPUGfUFs/X8esihSR/DDzw=";
};
patches = [
# fixes libdom build on gcc 14 due to calloc-transposed-args warning
# remove on next release
./fix-calloc-transposed-args.patch
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
expat
netsurf-buildsystem
libparserutils
];
propagatedBuildInputs = [
libhubbub
libwapcaplet
];
makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${netsurf-buildsystem}/share/netsurf-buildsystem"
];
enableParallelBuilding = true;
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 (netsurf-buildsystem.meta) maintainers platforms;
};
})