01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
38 lines
659 B
Nix
38 lines
659 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gumbo
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "litehtml";
|
|
version = "0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litehtml";
|
|
repo = "litehtml";
|
|
rev = "v${version}";
|
|
hash = "sha256-9571d3k8RkzEpMWPuIejZ7njLmYstSwFUaSqT3sk6uQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
gumbo
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DEXTERNAL_GUMBO=ON"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|