about summary refs log tree commit diff
path: root/pkgs/applications/misc/xiphos
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2014-04-19 16:33:00 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2014-08-23 20:37:10 -0300
commit72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4 (patch)
tree693471711d88b8c3ee0da76fcbe6bb3f1b95b0d1 /pkgs/applications/misc/xiphos
parent007232ff8f99a086ce58c193d9aaa8ceaa023541 (diff)
downloadnixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.tar
nixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.tar.gz
nixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.tar.bz2
nixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.tar.lz
nixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.tar.xz
nixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.tar.zst
nixlib-72132d5ed0b39a832ce8e6719f9b6cc6dbca68b4.zip
Xiphos - New Package (version 3.2.1)
This is a new expression for Xiphos 3.2.1,
followed by an update of Sword library to 1.7.3 (required)
Diffstat (limited to 'pkgs/applications/misc/xiphos')
-rw-r--r--pkgs/applications/misc/xiphos/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/applications/misc/xiphos/default.nix b/pkgs/applications/misc/xiphos/default.nix
new file mode 100644
index 000000000000..b8cd2ff25840
--- /dev/null
+++ b/pkgs/applications/misc/xiphos/default.nix
@@ -0,0 +1,57 @@
+{stdenv, fetchurl, 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
+}:
+
+stdenv.mkDerivation rec {
+  name = "xiphos-${version}";  
+  version = "3.2.1";
+
+  src = fetchurl {
+    url = "http://downloads.sourceforge.net/project/gnomesword/Xiphos/${version}/${name}.tar.gz";
+    sha256 = "0xff31f89as1p7fn3vq8ishjhbmx6qhc25msh5ypa0zg8hm5dxbb";
+  };
+
+  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 =  {
+    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 = stdenv.lib.licenses.gpl2Plus;
+    maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}