From b7c28e202f20c3d2d5f211db6971b2afeedfab6a Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 7 Oct 2024 12:11:46 +0200 Subject: [PATCH] dillo-plus: init at 3.3.0 --- pkgs/by-name/di/dillo-plus/package.nix | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 pkgs/by-name/di/dillo-plus/package.nix diff --git a/pkgs/by-name/di/dillo-plus/package.nix b/pkgs/by-name/di/dillo-plus/package.nix new file mode 100644 index 0000000000000..8247cee5781f2 --- /dev/null +++ b/pkgs/by-name/di/dillo-plus/package.nix @@ -0,0 +1,56 @@ +{ + lib, + stdenv, + fetchFromGitHub, + fltk, + giflib, + libjpeg, + libpng, + libXdmcp, + openssl, + pkg-config, + wget, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "dillo-plus"; + version = "3.3.0"; + + src = fetchFromGitHub { + owner = "crossbowerbt"; + repo = "dillo-plus"; + rev = "v${finalAttrs.version}"; + hash = "sha256-NLerc1GXTdzuGVshXn7faK4vOu7wDVMiQNTljOF7OhA="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + fltk + giflib + libjpeg + libpng + libXdmcp + openssl + ]; + + strictDeps = true; + + makeFlags = [ + "PREFIX=$(out)" + "DOWNLOADER_TOOL=${lib.getExe wget}" + "INSTALL=install" + ]; + + meta = { + description = "Lightweight web browser based on Dillo but with many improvements, such as: support for http, https, gemini, gopher, epub, reader mode and more"; + homepage = "https://github.com/crossbowerbt/dillo-plus"; + changelog = "https://github.com/crossbowerbt/dillo-plus/blob/main/ChangeLog"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ fgaz ]; + mainProgram = "dillo"; + platforms = lib.platforms.all; + }; +})