2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-05-18 14:49:53 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, boost
|
|
|
|
, clucene_core_2
|
|
|
|
, docbook_xsl_ns
|
|
|
|
, perlPackages
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, sword
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bibletime";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "3.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bibletime";
|
2022-07-14 12:49:19 +00:00
|
|
|
repo = finalAttrs.pname;
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-4O8F5/EyoJFJBEWOAs9lzN3TKuu/CEdKfPaOF8gNqps=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
boost
|
2022-05-18 14:49:53 +00:00
|
|
|
clucene_core_2
|
|
|
|
perlPackages.Po4a
|
2021-06-04 09:07:49 +00:00
|
|
|
qtbase
|
|
|
|
qtsvg
|
2022-05-18 14:49:53 +00:00
|
|
|
qttools
|
|
|
|
sword
|
2021-06-04 09:07:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
export CLUCENE_HOME=${clucene_core_2};
|
2020-04-24 23:36:52 +00:00
|
|
|
export SWORD_HOME=${sword};
|
|
|
|
'';
|
|
|
|
|
2021-06-04 09:07:49 +00: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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.bibletime.info/";
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "A powerful cross platform Bible study tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bibletime";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-07-14 12:49:19 +00:00
|
|
|
})
|