about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/bibletime/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/bibletime/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/bibletime/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/bibletime/default.nix b/nixpkgs/pkgs/applications/misc/bibletime/default.nix
new file mode 100644
index 000000000000..3213ed9edf0d
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/bibletime/default.nix
@@ -0,0 +1,36 @@
+{ lib, mkDerivation, stdenv, fetchurl, cmake, pkg-config, sword, boost, clucene_core
+, qtbase, qttools, qtsvg, qtwebkit
+}:
+
+mkDerivation rec {
+
+  version = "2.11.2";
+
+  pname = "bibletime";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/bibletime/${pname}-${version}.tar.xz";
+    sha256 = "1s5bvmwbz1gyp3ml8sghpc00h8nhdvx2iyq96iri30kwx1y1jy6i";
+  };
+
+  nativeBuildInputs = [ cmake pkg-config ];
+  buildInputs = [
+   sword boost clucene_core
+   qtbase qttools qtsvg qtwebkit
+ ];
+
+  preConfigure =  ''
+    export CLUCENE_HOME=${clucene_core};
+    export SWORD_HOME=${sword};
+  '';
+
+  cmakeFlags = [ "-DUSE_QT_WEBKIT=ON" "-DCMAKE_BUILD_TYPE=Debug" ];
+
+  meta = {
+    description = "A Qt4 Bible study tool";
+    homepage = "http://www.bibletime.info/";
+    platforms = lib.platforms.linux;
+    license = lib.licenses.gpl2;
+    maintainers = [ lib.maintainers.piotr ];
+  };
+}