2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, cmake, extra-cmake-modules, pkg-config
|
2020-07-01 03:54:33 +02:00
|
|
|
, qtbase, qtimageformats, qtwebengine, qtx11extras, mkDerivation
|
2017-09-04 02:13:52 +02:00
|
|
|
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms }:
|
2015-01-28 00:02:50 +01:00
|
|
|
|
2019-08-05 11:28:25 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zeal";
|
2020-07-01 03:54:33 +02:00
|
|
|
version = "0.6.999";
|
2015-01-28 00:02:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-01 03:54:33 +02:00
|
|
|
owner = "zealdocs";
|
|
|
|
repo = "zeal";
|
|
|
|
rev = "1ce0e2e446232e7647c5588c1f603f1dd88e0f67";
|
|
|
|
sha256 = "0gj5qcm7ck8m5zfmiabay2f7wbxldmrkw8m3xi7v9i8y8hx0jkxr";
|
2015-01-28 00:02:50 +01:00
|
|
|
};
|
|
|
|
|
2020-07-01 03:54:33 +02:00
|
|
|
# we only need this if we are using a version that hasn't been released. We
|
|
|
|
# could also match on the "VERSION x.y.z" bit but then it would have to be
|
|
|
|
# updated based on whatever is the latest release, so instead just rewrite the
|
|
|
|
# line.
|
|
|
|
postPatch = ''
|
|
|
|
sed -i CMakeLists.txt \
|
|
|
|
-e 's@^project.*@project(Zeal VERSION ${version})@'
|
|
|
|
'';
|
2017-09-04 02:13:52 +02:00
|
|
|
|
2021-01-17 03:14:13 +01:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ];
|
2020-07-01 03:54:33 +02:00
|
|
|
|
2015-05-26 17:02:41 +02:00
|
|
|
buildInputs = [
|
2020-07-01 03:54:33 +02:00
|
|
|
qtbase qtimageformats qtwebengine qtx11extras
|
2017-09-04 02:13:52 +02:00
|
|
|
libarchive
|
|
|
|
libXdmcp libpthreadstubs xcbutilkeysyms
|
2015-05-26 17:02:41 +02:00
|
|
|
];
|
2015-01-28 00:02:50 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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.
|
|
|
|
'';
|
2020-07-01 03:54:33 +02:00
|
|
|
homepage = "https://zealdocs.org/";
|
|
|
|
license = licenses.gpl3;
|
2017-12-11 01:05:54 +01:00
|
|
|
maintainers = with maintainers; [ skeidel peterhoeg ];
|
2020-07-01 03:54:33 +02:00
|
|
|
platforms = platforms.linux;
|
2015-01-28 00:02:50 +01:00
|
|
|
};
|
|
|
|
}
|