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

61 lines
1.6 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, pkgconfig
, python
, intltool
, docbook2x, docbook_xml_dtd_412, libxslt
, sword, clucene_core
, gnome_doc_utils
, libgsf, gconf
, gtkhtml, libgtkhtml, libglade, scrollkeeper
, webkitgtk
2014-09-27 20:27:51 +00:00
, dbus_glib, enchant, isocodes, libuuid
}:
stdenv.mkDerivation rec {
name = "xiphos-${version}";
2015-08-15 15:35:01 +00:00
version = "4.0.3-20150806";
src = fetchurl {
url = "http://downloads.sourceforge.net/project/gnomesword/Xiphos/${version}/${name}.tar.gz";
2015-08-15 15:35:01 +00:00
sha256 = "1xkvhpasdlda2rp0874znz158z4rjh1hpynwy13d96kjxq4npiqv";
};
2014-09-27 20:27:51 +00:00
buildInputs = [ pkgconfig python intltool docbook2x docbook_xml_dtd_412 libxslt
sword clucene_core gnome_doc_utils libgsf gconf gtkhtml libgtkhtml
libglade scrollkeeper webkitgtk dbus_glib enchant isocodes libuuid ];
prePatch = ''
patchShebangs .;
'';
preConfigure = ''
export CLUCENE_HOME=${clucene_core};
export SWORD_HOME=${sword};
'';
configurePhase = ''
python waf configure --prefix=$out
'';
buildPhase = ''
python waf build
'';
installPhase = ''
python waf install
'';
meta = with stdenv.lib; {
description = "A GTK Bible study tool";
longDescription = ''
Xiphos (formerly known as GnomeSword) is a Bible study tool
written for Linux, UNIX, and Windows using GTK, offering a rich
and featureful environment for reading, study, and research using
modules from The SWORD Project and elsewhere.
'';
homepage = http://www.xiphos.org/;
license = licenses.gpl2Plus;
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.linux;
};
}