2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
icu,
|
|
|
|
clucene_core,
|
|
|
|
curl,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sword";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "https://www.crosswire.org/ftpmirror/pub/sword/source/v${lib.versions.majorMinor finalAttrs.version}/sword-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-QkCc894vrxEIUj4sWsB0XSH57SpceO2HjuncwwNCa4o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
icu
|
|
|
|
clucene_core
|
|
|
|
curl
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .;
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--without-conf"
|
|
|
|
"--enable-tests=no"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
CXXFLAGS = [
|
|
|
|
"-Wno-unused-but-set-variable"
|
2024-06-05 15:53:02 +00:00
|
|
|
"-Wno-unknown-warning-option"
|
2020-04-24 23:36:52 +00:00
|
|
|
# compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
|
|
|
|
"-DU_USING_ICU_NAMESPACE=1"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
|
|
|
description = "Software framework that allows research manipulation of Biblical texts";
|
|
|
|
homepage = "https://www.crosswire.org/sword/";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
The SWORD Project is the CrossWire Bible Society's free Bible software
|
|
|
|
project. Its purpose is to create cross-platform open-source tools --
|
|
|
|
covered by the GNU General Public License -- that allow programmers and
|
|
|
|
Bible societies to write new Bible software more quickly and easily. We
|
|
|
|
also create Bible study software for all readers, students, scholars, and
|
|
|
|
translators of the Bible, and have a growing collection of many hundred
|
|
|
|
texts in around 100 languages.
|
|
|
|
'';
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
})
|