nixpkgs/pkgs/data/documentation/zeal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.7 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, extra-cmake-modules
, fetchpatch2
, pkg-config
, qtbase
, qtimageformats
, qtwebengine
, qtx11extras
, libarchive
, libXdmcp
, libpthreadstubs
, wrapQtAppsHook
, xcbutilkeysyms
}:
2015-01-27 23:02:50 +00:00
let
isQt5 = lib.versions.major qtbase.version == "5";
2023-09-21 09:57:20 +01:00
2023-04-04 04:15:01 +01:00
in
stdenv.mkDerivation (finalAttrs: {
pname = "zeal";
version = "0.7.1";
2015-01-27 23:02:50 +00:00
src = fetchFromGitHub {
2020-07-01 02:54:33 +01:00
owner = "zealdocs";
repo = "zeal";
2023-09-21 09:57:20 +01:00
rev = "v${finalAttrs.version}";
hash = "sha256-918hWy5be5mHINLbFJPiE29wlL1kRUD4MS3AjML/6fs=";
2015-01-27 23:02:50 +00:00
};
patches = [
# https://github.com/zealdocs/zeal/pull/1644
(fetchpatch2 {
name = "fix-qtconcurrent-component.patch";
url = "https://github.com/zealdocs/zeal/commit/c432a0ac22b59ed44bdcec8819c030d993177883.patch";
hash = "sha256-DW7rBRMnXm7r+jps1/3RTXA1PpwEUCprW9qrHMRii84=";
})
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
wrapQtAppsHook
];
2020-07-01 02:54:33 +01:00
2023-04-04 04:15:01 +01:00
buildInputs = [
libXdmcp
libarchive
libpthreadstubs
2023-04-04 04:15:01 +01:00
qtbase
qtimageformats
qtwebengine
xcbutilkeysyms
]
++ lib.optionals isQt5 [ qtx11extras ];
2015-01-27 23:02:50 +00:00
cmakeFlags = [
(lib.cmakeBool "ZEAL_RELEASE_BUILD" true)
];
meta = {
description = "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/";
changelog = "https://github.com/zealdocs/zeal/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ peterhoeg AndersonTorres ];
2024-03-08 20:37:05 +00:00
mainProgram = "zeal";
inherit (qtbase.meta) platforms;
2015-01-27 23:02:50 +00:00
};
})