2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, icu, clucene_core, curl }:
|
2010-11-03 21:36:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sword";
|
2020-04-14 18:06:47 +02:00
|
|
|
version = "1.8.1";
|
2010-11-03 21:36:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-14 18:06:47 +02:00
|
|
|
url = "https://www.crosswire.org/ftpmirror/pub/sword/source/v1.8/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "14syphc47g6svkbg018nrsgq4z6hid1zydax243g8dx747vsi6nf";
|
2010-11-03 21:36:36 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ icu clucene_core curl ];
|
2010-11-03 21:36:36 +01:00
|
|
|
|
2015-01-08 10:26:49 +01:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .;
|
|
|
|
'';
|
|
|
|
|
2019-06-05 22:54:02 +02:00
|
|
|
configureFlags = [ "--without-conf" "--enable-tests=no" ];
|
|
|
|
CXXFLAGS = [
|
|
|
|
"-Wno-unused-but-set-variable"
|
|
|
|
# compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
|
|
|
|
"-DU_USING_ICU_NAMESPACE=1"
|
|
|
|
];
|
2010-11-03 21:36:36 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2010-11-03 21:36:36 +01:00
|
|
|
description = "A software framework that allows research manipulation of Biblical texts";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.crosswire.org/sword/";
|
2020-04-14 18:06:47 +02: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.
|
|
|
|
'';
|
2014-09-10 20:59:54 +02:00
|
|
|
license = licenses.gpl2;
|
2020-04-14 18:06:47 +02:00
|
|
|
maintainers = with maintainers; [ piotr AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2010-11-03 21:36:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|