summary refs log tree commit diff
path: root/pkgs/data/documentation/zeal/default.nix
blob: 1951429fa90700a25a86a5dc5ae4e7eb6e8d38ba (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
{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig
, qtbase, qtimageformats, qtwebkit, qtx11extras
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms  }:

stdenv.mkDerivation rec {
  name = "zeal-${version}";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner  = "zealdocs";
    repo   = "zeal";
    rev    = "v${version}";
    sha256 = "14gm9n2zmqgig4nz5i3089dhn0a7c175g1szr0zg9yzr9j2hk0mr";
  };

  # while ads can be disabled from the user settings, by default they are not so
  # we patch it out completely instead
  patches = [ ./remove_ads.patch ];

  nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
  buildInputs = [
    qtbase qtimageformats qtwebkit qtx11extras
    libarchive
    libXdmcp libpthreadstubs xcbutilkeysyms
  ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "A simple offline API documentation browser";
    longDescription = ''
      Zeal is a simple offline API documentation browser inspired by Dash (macOS
      app), available for Linux and Windows.
    '';
    homepage    = http://zealdocs.org/;
    license     = licenses.gpl3;
    maintainers = with maintainers; [ skeidel peterhoeg ];
    platforms   = platforms.linux;
  };
}