Merge pull request #200051 from fgaz/litebrowser/init
litebrowser, litehtml: init
This commit is contained in:
commit
c3b26b4650
|
@ -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 ];
|
||||
};
|
||||
}
|
38
pkgs/development/libraries/litehtml/default.nix
Normal file
38
pkgs/development/libraries/litehtml/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user