Files
nixpkgs/pkgs/by-name/li/litebrowser/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
gtk3,
gtkmm3,
curl,
gumbo, # litehtml dependency
}:
stdenv.mkDerivation {
pname = "litebrowser";
version = "0-unstable-2024-02-25";
src = fetchFromGitHub {
owner = "litehtml";
repo = "litebrowser-linux";
rev = "8130cf50af90e07d201d43b934b5a57f7ed4e68d";
hash = "sha256-L/pd4VypDfjLKfh+HLpc4um+POWGzGa4OOttudwJxyk=";
fetchSubmodules = true; # litehtml submodule
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
gtk3
gtkmm3
curl
gumbo
];
cmakeFlags = [
"-DEXTERNAL_GUMBO=ON"
];
installPhase = ''
runHook preInstall
install -Dm755 litebrowser $out/bin/litebrowser
runHook postInstall
'';
meta = {
broken = stdenv.cc.isClang; # https://github.com/litehtml/litebrowser-linux/issues/19
description = "Simple browser based on the litehtml engine";
mainProgram = "litebrowser";
homepage = "https://github.com/litehtml/litebrowser-linux";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ fgaz ];
};
}