Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gumbo,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "litehtml";
|
|
version = "0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litehtml";
|
|
repo = "litehtml";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-ZE/HKzo3ejKpW/ih3sJwn2hzCtsBhAXeJWGezYd6Yc4";
|
|
};
|
|
|
|
# Don't search for non-existent gumbo cmake config
|
|
# This will mislead cmake that litehtml is not found
|
|
# Affects build of pkgs that depend on litehtml
|
|
postPatch = ''
|
|
substituteInPlace cmake/litehtmlConfig.cmake \
|
|
--replace-fail "find_dependency(gumbo)" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
gumbo
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DEXTERNAL_GUMBO=ON"
|
|
# BuildTesting need to download test data online
|
|
"-DLITEHTML_BUILD_TESTING=OFF"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Fast and lightweight HTML/CSS rendering engine";
|
|
homepage = "http://www.litehtml.com/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
};
|
|
})
|