depot/third_party/nixpkgs/pkgs/applications/misc/bibletime/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

66 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, docbook_xml_dtd_45
, pkg-config
, wrapQtAppsHook
, boost
, clucene_core_2
, docbook_xsl_ns
, perlPackages
, qtbase
, qtsvg
, qttools
, sword
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bibletime";
version = "3.0.3";
src = fetchFromGitHub {
owner = "bibletime";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
hash = "sha256-4O8F5/EyoJFJBEWOAs9lzN3TKuu/CEdKfPaOF8gNqps=";
};
nativeBuildInputs = [
cmake
docbook_xml_dtd_45
pkg-config
wrapQtAppsHook
];
buildInputs = [
boost
clucene_core_2
perlPackages.Po4a
qtbase
qtsvg
qttools
sword
];
preConfigure = ''
export CLUCENE_HOME=${clucene_core_2};
export SWORD_HOME=${sword};
'';
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"
];
meta = with lib; {
homepage = "http://www.bibletime.info/";
description = "Powerful cross platform Bible study tool";
mainProgram = "bibletime";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux;
};
})