mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
61 lines
1.4 KiB
Nix
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;
|
|
};
|
|
})
|