@@ -1,36 +1,47 @@
11{ lib, mkDerivation, fetchurl, cmake, pkg-config, sword, boost, clucene_core
2−, qtbase, qttools, qtsvg, qtwebkit
3−}:
2+, qtbase, qttools, qtsvg, perlPackages, docbook_xml_dtd_45
3+, docbook_xsl_ns }:
44
55mkDerivation rec {
66
7− version = "2.11.2";
7+ version = "3.0";
88
99 pname = "bibletime";
1010
1111 src = fetchurl {
12− url = "mirror://sourceforge/bibletime/${pname}-${version}.tar.xz";
13− sha256 = "1s5bvmwbz1gyp3ml8sghpc00h8nhdvx2iyq96iri30kwx1y1jy6i";
12+ url =
13+ "https://github.com/bibletime/bibletime/releases/download/v${version}/${pname}-${version}.tar.xz";
14+ sha256 = "08i6nb9a7z0jpsq76q0kr62hw6ph9chqjpjcvkimbcj4mmifzgnn";
1415 };
1516
16− nativeBuildInputs = [ cmake pkg-config ];
17+ nativeBuildInputs = [ cmake pkg-config docbook_xml_dtd_45 ];
1718 buildInputs = [
18− sword boost clucene_core
19− qtbase qttools qtsvg qtwebkit
20− ];
21−
22− preConfigure = ''
19+ sword
20+ boost
21+ clucene_core
22+ qtbase
23+ qttools
24+ qtsvg
25+ perlPackages.Po4a
26+ ];
27+
28+ preConfigure = ''
2329 export CLUCENE_HOME=${clucene_core};
2430 export SWORD_HOME=${sword};
2531 '';
2632
27− cmakeFlags = [ "-DUSE_QT_WEBKIT=ON" "-DCMAKE_BUILD_TYPE=Debug" ];
33+ cmakeFlags = [
34+ "-DBUILD_HOWTO_PDF=OFF"
35+ "-DBUILD_HANDBOOK_PDF=OFF"
36+ "-DBT_DOCBOOK_XSL_HTML_CHUNK_XSL=${docbook_xsl_ns}/share/xml/docbook-xsl-ns/html/chunk.xsl"
37+ "-DBT_DOCBOOK_XSL_PDF_DOCBOOK_XSL=${docbook_xsl_ns}/share/xml/docbook-xsl-ns/html/chunk.xsl"
38+ ];
2839
2940 meta = {
3041 description = "A Qt4 Bible study tool";
3142 homepage = "http://www.bibletime.info/";
3243 platforms = lib.platforms.linux;
33− license = lib.licenses.gpl2;
44+ license = lib.licenses.gpl2Plus;
3445 maintainers = [ lib.maintainers.piotr ];
3546 };
3647}