1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/data/documentation/zeal/default.nix

45 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig
2020-07-01 02:54:33 +01:00
, qtbase, qtimageformats, qtwebengine, qtx11extras, mkDerivation
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms }:
2015-01-27 23:02:50 +00:00
mkDerivation rec {
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})@'
'';
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
2020-07-01 02:54:33 +01:00
buildInputs = [
2020-07-01 02:54:33 +01:00
qtbase qtimageformats qtwebengine qtx11extras
libarchive
libXdmcp libpthreadstubs xcbutilkeysyms
];
2015-01-27 23:02:50 +00:00
meta = with stdenv.lib; {
description = "A simple offline API documentation browser";
2015-01-27 23:02:50 +00:00
longDescription = ''
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
};
}