2017-09-04 02:13:52 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig
|
|
|
|
, qtbase, qtimageformats, qtwebkit, qtx11extras
|
|
|
|
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms }:
|
2015-01-28 00:02:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "zeal-${version}";
|
2017-09-04 02:13:52 +02:00
|
|
|
version = "0.4.0";
|
2015-01-28 00:02:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-09-04 02:13:52 +02:00
|
|
|
owner = "zealdocs";
|
|
|
|
repo = "zeal";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1mfcw843g4slr79bvidb5s88m7a3swr9by6srdn233b88j8mqwzl";
|
2015-01-28 00:02:50 +01:00
|
|
|
};
|
|
|
|
|
2017-09-04 02:13:52 +02:00
|
|
|
# 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 ];
|
2015-05-26 17:02:41 +02:00
|
|
|
buildInputs = [
|
2017-09-04 02:13:52 +02:00
|
|
|
qtbase qtimageformats qtwebkit qtx11extras
|
|
|
|
libarchive
|
|
|
|
libXdmcp libpthreadstubs xcbutilkeysyms
|
2015-05-26 17:02:41 +02:00
|
|
|
];
|
2015-01-28 00:02:50 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-04 02:13:52 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A simple offline API documentation browser";
|
2015-01-28 00:02:50 +01:00
|
|
|
longDescription = ''
|
2017-08-07 00:05:18 +02:00
|
|
|
Zeal is a simple offline API documentation browser inspired by Dash (macOS
|
2015-01-28 00:02:50 +01:00
|
|
|
app), available for Linux and Windows.
|
|
|
|
'';
|
2017-09-04 02:13:52 +02:00
|
|
|
homepage = http://zealdocs.org/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ skeidel ];
|
|
|
|
platforms = platforms.linux;
|
2015-01-28 00:02:50 +01:00
|
|
|
};
|
|
|
|
}
|