Merge pull request #200051 from fgaz/litebrowser/init

litebrowser, litehtml: init
This commit is contained in:
Mario Rodas 2022-11-08 09:16:27 -05:00 committed by GitHub
commit c3b26b4650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, gtk3
, gtkmm3
, curl
, poco
, gumbo # litehtml dependency
}:
stdenv.mkDerivation {
pname = "litebrowser";
version = "unstable-2022-10-31";
src = fetchFromGitHub {
owner = "litehtml";
repo = "litebrowser-linux";
rev = "4654f8fb2d5e2deba7ac6223b6639341bd3b7eba";
hash = "sha256-SvW1AOxLBLKqa+/2u2Zn+/t33ZzQHmqlcLRl6z0rK9U=";
fetchSubmodules = true; # litehtml submodule
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
gtk3
gtkmm3
curl
poco
gumbo
];
cmakeFlags = [
"-DEXTERNAL_GUMBO=ON"
];
installPhase = ''
runHook preInstall
install -Dm755 litebrowser $out/bin/litebrowser
runHook postInstall
'';
meta = with lib; {
description = "A simple browser based on the litehtml engine";
homepage = "https://github.com/litehtml/litebrowser-linux";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ fgaz ];
};
}

View File

@ -0,0 +1,38 @@
{ 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 ];
};
}

View File

@ -21151,6 +21151,8 @@ with pkgs;
liquidfun = callPackage ../development/libraries/liquidfun { };
litehtml = callPackage ../development/libraries/litehtml { };
live555 = callPackage ../development/libraries/live555 { };
log4cpp = callPackage ../development/libraries/log4cpp { };
@ -30013,6 +30015,8 @@ with pkgs;
lingot = callPackage ../applications/audio/lingot { };
litebrowser = callPackage ../applications/networking/browsers/litebrowser { };
littlegptracker = callPackage ../applications/audio/littlegptracker {
inherit (darwin.apple_sdk.frameworks) Foundation;
};