2017-09-04 01:13:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig
|
2019-08-05 10:28:25 +01:00
|
|
|
, qtbase, qtimageformats, qtwebkit, qtx11extras, mkDerivation
|
2017-09-04 01:13:52 +01:00
|
|
|
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms }:
|
2015-01-27 23:02:50 +00:00
|
|
|
|
2019-08-05 10:28:25 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zeal";
|
2018-10-03 08:35:14 +01:00
|
|
|
version = "0.6.1";
|
2015-01-27 23:02:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-09-04 01:13:52 +01:00
|
|
|
owner = "zealdocs";
|
|
|
|
repo = "zeal";
|
|
|
|
rev = "v${version}";
|
2018-10-03 08:35:14 +01:00
|
|
|
sha256 = "05qcjpibakv4ibhxgl5ajbkby3w7bkxsv3nfv2a0kppi1z0f8n8v";
|
2015-01-27 23:02:50 +00:00
|
|
|
};
|
|
|
|
|
2017-09-04 01:13:52 +01: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 16:02:41 +01:00
|
|
|
buildInputs = [
|
2017-09-04 01:13:52 +01:00
|
|
|
qtbase qtimageformats qtwebkit qtx11extras
|
|
|
|
libarchive
|
|
|
|
libXdmcp libpthreadstubs xcbutilkeysyms
|
2015-05-26 16:02:41 +01:00
|
|
|
];
|
2015-01-27 23:02:50 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-04 01:13:52 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A simple offline API documentation browser";
|
2015-01-27 23:02:50 +00:00
|
|
|
longDescription = ''
|
2017-08-06 23:05:18 +01:00
|
|
|
Zeal is a simple offline API documentation browser inspired by Dash (macOS
|
2015-01-27 23:02:50 +00:00
|
|
|
app), available for Linux and Windows.
|
|
|
|
'';
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://zealdocs.org/;
|
2017-09-04 01:13:52 +01:00
|
|
|
license = licenses.gpl3;
|
2017-12-11 00:05:54 +00:00
|
|
|
maintainers = with maintainers; [ skeidel peterhoeg ];
|
2017-09-04 01:13:52 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-27 23:02:50 +00:00
|
|
|
};
|
|
|
|
}
|