2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig
|
2020-07-18 16:06:22 +00:00
|
|
|
, qtbase, qtimageformats, qtwebengine, qtx11extras, mkDerivation
|
2020-04-24 23:36:52 +00:00
|
|
|
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "zeal";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.6.999";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-18 16:06:22 +00:00
|
|
|
owner = "zealdocs";
|
|
|
|
repo = "zeal";
|
|
|
|
rev = "1ce0e2e446232e7647c5588c1f603f1dd88e0f67";
|
|
|
|
sha256 = "0gj5qcm7ck8m5zfmiabay2f7wbxldmrkw8m3xi7v9i8y8hx0jkxr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00: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})@'
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2020-07-18 16:06:22 +00:00
|
|
|
qtbase qtimageformats qtwebengine qtx11extras
|
2020-04-24 23:36:52 +00:00
|
|
|
libarchive
|
|
|
|
libXdmcp libpthreadstubs xcbutilkeysyms
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple offline API documentation browser";
|
|
|
|
longDescription = ''
|
|
|
|
Zeal is a simple offline API documentation browser inspired by Dash (macOS
|
|
|
|
app), available for Linux and Windows.
|
|
|
|
'';
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://zealdocs.org/";
|
|
|
|
license = licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ skeidel peterhoeg ];
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|