2010-08-12 12:39:29 +02:00
|
|
|
{stdenv, fetchurl, fetchsvn, qt4, qca2, openssl}:
|
2010-04-13 08:53:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-08-12 12:39:29 +02:00
|
|
|
version = "2.0.0-beta3";
|
|
|
|
name = "qca-ossl-${version}";
|
2010-04-13 08:53:51 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://delta.affinix.com/download/qca/2.0/plugins/${name}.tar.bz2";
|
|
|
|
sha256 = "0yy68racvx3clybry2i1bw5bz9yhxr40p3xqagxxb15ihvsrzq08";
|
|
|
|
};
|
2010-08-12 12:39:29 +02:00
|
|
|
# SVN version has stabilized and has a lot of fixes for fresh OpenSSL
|
|
|
|
# Take the main source from there
|
|
|
|
svn_src = fetchsvn {
|
|
|
|
url = svn://anonsvn.kde.org/home/kde/trunk/kdesupport/qca/plugins/qca-ossl ;
|
|
|
|
rev = 1115936;
|
|
|
|
sha256 = "ef2c0307e8834e1e7cb23b6fea1cc22486328a37186301a6c11161b1c93d834b";
|
|
|
|
};
|
2010-04-13 08:53:51 +02:00
|
|
|
buildInputs = [ qt4 qca2 openssl ];
|
|
|
|
dontAddPrefix = true;
|
|
|
|
configureFlags="--no-separate-debug-info --with-qca=${qca2}
|
|
|
|
--with-openssl-inc=${openssl}/include --with-openssl-lib=${openssl}/lib";
|
|
|
|
preConfigure=''
|
2010-08-12 12:39:29 +02:00
|
|
|
cp ${svn_src}/qca-ossl.cpp .
|
|
|
|
|
2010-05-05 20:17:30 +02:00
|
|
|
configureFlags="$configureFlags --plugins-path=$out/lib/qt4/plugins"
|
2010-04-13 08:53:51 +02:00
|
|
|
'';
|
2010-08-12 12:39:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-13 08:53:51 +02:00
|
|
|
description = "Qt Cryptographic Architecture OpenSSL plugin";
|
|
|
|
license = "LGPL";
|
|
|
|
homepage = http://delta.affinix.com/qca;
|
2010-08-12 12:39:29 +02:00
|
|
|
maintainers = [ maintainers.urkud ];
|
2010-04-13 08:53:51 +02:00
|
|
|
};
|
|
|
|
}
|