2022-05-13 18:18:06 +01:00
|
|
|
{ lib, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, boost
|
|
|
|
, clucene_core_2
|
|
|
|
, docbook_xsl_ns
|
|
|
|
, perlPackages
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, sword
|
|
|
|
}:
|
2010-11-03 20:42:26 +00:00
|
|
|
|
2020-04-07 21:31:58 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bibletime";
|
2021-09-06 02:39:58 +01:00
|
|
|
version = "3.0.2";
|
2010-11-03 20:42:26 +00:00
|
|
|
|
2022-05-13 18:18:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bibletime";
|
|
|
|
repo = "bibletime";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-8X5LkquALFnG0yRayZYjeymHDcOzINBv0MXeVBsOnfI=";
|
2010-11-03 20:42:26 +00:00
|
|
|
};
|
2011-09-13 21:52:25 +01:00
|
|
|
|
2022-05-13 18:18:06 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2019-11-07 14:03:59 +00:00
|
|
|
buildInputs = [
|
2021-06-01 04:23:54 +01:00
|
|
|
boost
|
2022-05-13 18:18:06 +01:00
|
|
|
clucene_core_2
|
|
|
|
perlPackages.Po4a
|
2021-06-01 04:23:54 +01:00
|
|
|
qtbase
|
|
|
|
qtsvg
|
2022-05-13 18:18:06 +01:00
|
|
|
qttools
|
|
|
|
sword
|
2021-06-01 04:23:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2022-05-13 18:18:06 +01:00
|
|
|
export CLUCENE_HOME=${clucene_core_2};
|
2010-11-03 20:42:26 +00:00
|
|
|
export SWORD_HOME=${sword};
|
|
|
|
'';
|
|
|
|
|
2021-06-01 04:23:54 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_HOWTO_PDF=OFF"
|
|
|
|
"-DBUILD_HANDBOOK_PDF=OFF"
|
|
|
|
"-DBT_DOCBOOK_XSL_HTML_CHUNK_XSL=${docbook_xsl_ns}/share/xml/docbook-xsl-ns/html/chunk.xsl"
|
|
|
|
"-DBT_DOCBOOK_XSL_PDF_DOCBOOK_XSL=${docbook_xsl_ns}/share/xml/docbook-xsl-ns/html/chunk.xsl"
|
|
|
|
];
|
2010-11-03 20:42:26 +00:00
|
|
|
|
2021-08-04 16:02:31 +01:00
|
|
|
meta = with lib; {
|
2022-05-13 18:18:06 +01:00
|
|
|
description = "A powerful cross platform Bible study tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.bibletime.info/";
|
2021-08-04 16:02:31 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.piotr ];
|
2010-11-03 20:42:26 +00:00
|
|
|
};
|
|
|
|
}
|