2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchurl, cmake, pkg-config, sword, boost, clucene_core
|
2021-06-01 05:23:54 +02:00
|
|
|
, qtbase, qttools, qtsvg, perlPackages, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl_ns }:
|
2010-11-03 21:42:26 +01:00
|
|
|
|
2020-04-07 22:31:58 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bibletime";
|
2021-09-06 03:39:58 +02:00
|
|
|
version = "3.0.2";
|
2010-11-03 21:42:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-04 17:02:31 +02:00
|
|
|
url = "https://github.com/bibletime/bibletime/releases/download/v${version}/${pname}-${version}.tar.xz";
|
2021-09-06 03:39:58 +02:00
|
|
|
sha256 = "sha256-/JNjnU/DGD4YRtrKzX7t6MgNCZYihdgTJc+Jbr9IYJ4=";
|
2010-11-03 21:42:26 +01:00
|
|
|
};
|
2011-09-13 22:52:25 +02:00
|
|
|
|
2021-06-01 05:23:54 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config docbook_xml_dtd_45 ];
|
2019-11-07 15:03:59 +01:00
|
|
|
buildInputs = [
|
2021-06-01 05:23:54 +02:00
|
|
|
sword
|
|
|
|
boost
|
|
|
|
clucene_core
|
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtsvg
|
|
|
|
perlPackages.Po4a
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2013-12-23 11:35:35 +01:00
|
|
|
export CLUCENE_HOME=${clucene_core};
|
2010-11-03 21:42:26 +01:00
|
|
|
export SWORD_HOME=${sword};
|
|
|
|
'';
|
|
|
|
|
2021-06-01 05:23:54 +02: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 21:42:26 +01:00
|
|
|
|
2021-08-04 17:02:31 +02:00
|
|
|
meta = with lib; {
|
2010-11-03 21:42:26 +01:00
|
|
|
description = "A Qt4 Bible study tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.bibletime.info/";
|
2021-08-04 17:02:31 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.piotr ];
|
2010-11-03 21:42:26 +01:00
|
|
|
};
|
|
|
|
}
|