about summary refs log tree commit diff
path: root/pkgs/by-name/di/dillo/package.nix
blob: 760a9941b8df6076d6a9484f66304ad9faf3716b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
  lib,
  autoreconfHook,
  fetchFromGitHub,
  fltk,
  giflib,
  libXcursor,
  libXi,
  libXinerama,
  libjpeg,
  libpng,
  libressl,
  mbedtls,
  openssl,
  perl,
  pkg-config,
  stdenv,
  which,
  # Configurable options
  tlsLibrary? "libressl"
}:

let
  ssl = {
    "libressl" = libressl;
    "mbedtls" = mbedtls;
    "openssl" = openssl;
  }.${tlsLibrary} or (throw "Unrecognized tlsLibrary option: ${tlsLibrary}");
in
stdenv.mkDerivation (finalAttrs: {
  pname = "dillo";
  version = "3.1.0";

  src = fetchFromGitHub {
    owner = "dillo-browser";
    repo = "dillo";
    rev = "v${finalAttrs.version}";
    hash = "sha256-AqffkUPLvVSGq9iYksyvHf3HQ3DLWNlB3CYw4GCAAEI=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    fltk
    which
  ];

  buildInputs = [
    fltk
    giflib
    libXcursor
    libXi
    libXinerama
    libjpeg
    libpng
    perl
    ssl
  ];

  outputs = [ "out" "doc" "man" ];

  strictDeps = true;

  meta = {
    homepage = "https://dillo-browser.github.io/";
    description = "A fast graphical web browser with a small footprint";
    longDescription = ''
      Dillo is a fast and small graphical web browser with the following
      features:

      - Multi-platform, running on Linux, BSD, MacOS, Windows (via Cygwin) and
        even Atari.
      - Written in C and C++ with few dependencies.
      - Implements its own real-time rendering engine.
      - Low memory usage and fast rendering, even with large pages.
      - Uses the fast and bloat-free FLTK GUI library.
      - Support for HTTP, HTTPS, FTP and local files.
      - Extensible with plugins written in any language.
      - Is free software licensed with the GPLv3.
      - Helps authors to comply with web standards by using the bug meter.
    '';
    mainProgram = "dillo";
    maintainers = with lib.maintainers; [ AndersonTorres ];
    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.linux;
  };
})