summary refs log blame commit diff
path: root/pkgs/applications/misc/bibletime/default.nix
blob: 689bcf89ef97a6d45854f08a686711fb4e1475d0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                          


                         
                    



                                
                                                           
                                                                    
    
 








                                       
                                                      







                                                             
                                                   
    
 
{stdenv, fetchurl, cmake, sword, qt4, boost, cluceneCore}:

stdenv.mkDerivation rec {

  version = "2.9.2";

  name = "bibletime-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/bibletime/${name}.tar.bz2";
    sha256 = "1j4kc24qvhqlbqspczmkxvw09mnvgg9m4zs1y9f68505kd0pfg1r";
  };

  prePatch = ''
    patchShebangs .;
  '';

  preConfigure =  ''
    export CLUCENE_HOME=${cluceneCore};
    export SWORD_HOME=${sword};
  '';

  buildInputs = [ cmake sword qt4 boost cluceneCore ];

  cmakeFlags = "-DUSE_QT_WEBKIT=ON -DCMAKE_BUILD_TYPE=Debug";

  meta = {
    description = "A Qt4 Bible study tool";
    homepage = http://www.bibletime.info/;
    platforms = stdenv.lib.platforms.linux;
    license = "GPLv2";
    maintainers = [ stdenv.lib.maintainers.piotr ];
  };
}