1{ stdenv, fetchFromGitHub, pkgconfig, qt5, libarchive, xorg }:
2
3stdenv.mkDerivation rec {
4 version = "0.1.1";
5 name = "zeal-${version}";
6
7 src = fetchFromGitHub {
8 owner = "zealdocs";
9 repo = "zeal";
10 rev = "v${version}";
11 sha256 = "172wf50fq1l5p8hq1irvpwr7ljxkjaby71afrm82jz3ixl6dg2ii";
12 };
13
14 buildInputs = [
15 xorg.xcbutilkeysyms pkgconfig qt5.base qt5.webkit qt5.imageformats libarchive
16 ];
17
18 configurePhase = ''
19 qmake PREFIX=/
20 '';
21
22 installPhase = ''
23 make INSTALL_ROOT=$out install
24 '';
25
26 enableParallelBuilding = true;
27
28 meta = {
29 description = "A simple offline API documentation browser";
30 longDescription = ''
31 Zeal is a simple offline API documentation browser inspired by Dash (OS X
32 app), available for Linux and Windows.
33 '';
34 homepage = "http://zealdocs.org/";
35 license = stdenv.lib.licenses.gpl3;
36 platforms = stdenv.lib.platforms.linux;
37 maintainers = with stdenv.lib.maintainers; [ skeidel ];
38 };
39}
40