2017-09-04 01:13:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig
|
2020-07-01 02:54:33 +01:00
|
|
|
, qtbase, qtimageformats, qtwebengine, 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";
|
2020-07-01 02:54:33 +01:00
|
|
|
version = "0.6.999";
|
2015-01-27 23:02:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-01 02:54:33 +01:00
|
|
|
owner = "zealdocs";
|
|
|
|
repo = "zeal";
|
|
|
|
rev = "1ce0e2e446232e7647c5588c1f603f1dd88e0f67";
|
|
|
|
sha256 = "0gj5qcm7ck8m5zfmiabay2f7wbxldmrkw8m3xi7v9i8y8hx0jkxr";
|
2015-01-27 23:02:50 +00:00
|
|
|
};
|
|
|
|
|
2020-07-01 02:54:33 +01: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 01:13:52 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
|
2020-07-01 02:54:33 +01:00
|
|
|
|
2015-05-26 16:02:41 +01:00
|
|
|
buildInputs = [
|
2020-07-01 02:54:33 +01:00
|
|
|
qtbase qtimageformats qtwebengine qtx11extras
|
2017-09-04 01:13:52 +01:00
|
|
|
libarchive
|
|
|
|
libXdmcp libpthreadstubs xcbutilkeysyms
|
2015-05-26 16:02:41 +01:00
|
|
|
];
|
2015-01-27 23:02:50 +00:00
|
|
|
|
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.
|
|
|
|
'';
|
2020-07-01 02:54:33 +01:00
|
|
|
homepage = "https://zealdocs.org/";
|
|
|
|
license = licenses.gpl3;
|
2017-12-11 00:05:54 +00:00
|
|
|
maintainers = with maintainers; [ skeidel peterhoeg ];
|
2020-07-01 02:54:33 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-27 23:02:50 +00:00
|
|
|
};
|
|
|
|
}
|