nixpkgs/pkgs/applications/misc/bibletime/default.nix

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

66 lines
1.3 KiB
Nix
Raw Normal View History

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