diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2022-11-07 17:49:01 +0100 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2022-11-08 12:58:04 +0100 |
commit | b3d01ee88555827c5e2125ce0d457da7960ab737 (patch) | |
tree | 2eeb25c02acdeb1d9a13df58b1123ce653938cb5 /pkgs/applications/networking/browsers/litebrowser | |
parent | 5606ae7a27a29ca670487f74eeeaaea22b8db0cb (diff) |
litebrowser: init at unstable-2022-10-31
Diffstat (limited to 'pkgs/applications/networking/browsers/litebrowser')
-rw-r--r-- | pkgs/applications/networking/browsers/litebrowser/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/litebrowser/default.nix b/pkgs/applications/networking/browsers/litebrowser/default.nix new file mode 100644 index 0000000000000..2158d0bb2f573 --- /dev/null +++ b/pkgs/applications/networking/browsers/litebrowser/default.nix @@ -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 ]; + }; +} |