2014-09-10 20:59:54 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, icu, clucene_core, curl }:
|
2010-11-03 21:36:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "sword-${version}";
|
2015-08-15 14:35:41 +02:00
|
|
|
version = "1.7.4";
|
2010-11-03 21:36:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.crosswire.org/ftpmirror/pub/sword/source/v1.7/${name}.tar.gz";
|
2015-08-15 14:35:41 +02:00
|
|
|
sha256 = "0g91kpfkwccvdikddffdbzd6glnp1gdvkx4vh04iyz10bb7shpcr";
|
2010-11-03 21:36:36 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ icu clucene_core curl ];
|
2010-11-03 21:36:36 +01:00
|
|
|
|
2015-01-08 10:26:49 +01:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .;
|
|
|
|
'';
|
|
|
|
|
2017-08-30 19:09:23 +02:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/sword/files/sword-1.7.4-gcc6.patch";
|
|
|
|
sha256 = "0cvnya5swc7dxabir6bz6la2h1qxd32g3xi06m9b5l5ahb6g10y7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--without-conf" "--enable-tests=no CXXFLAGS=-Wno-unused-but-set-variable" ];
|
2010-11-03 21:36:36 +01:00
|
|
|
|
2014-09-10 20:59:54 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-11-03 21:36:36 +01:00
|
|
|
description = "A software framework that allows research manipulation of Biblical texts";
|
|
|
|
homepage = http://www.crosswire.org/sword/;
|
2014-09-10 20:59:54 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.piotr maintainers.AndersonTorres ];
|
2010-11-03 21:36:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|