2011-07-11 11:49:21 +01:00
|
|
|
{ stdenv, fetchurl, which, qt4 }:
|
2010-12-26 15:26:01 +00:00
|
|
|
|
2011-07-11 11:49:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qca-2.0.3";
|
|
|
|
|
2010-12-26 15:26:01 +00:00
|
|
|
src = fetchurl {
|
2011-07-11 11:49:21 +01:00
|
|
|
url = "http://delta.affinix.com/download/qca/2.0/${name}.tar.bz2";
|
|
|
|
sha256 = "0pw9fkjga8vxj465wswxmssxs4wj6zpxxi6kzkf4z5chyf4hr8ld";
|
2010-12-26 15:26:01 +00:00
|
|
|
};
|
2011-07-11 11:49:21 +01:00
|
|
|
|
2011-02-22 09:52:54 +00:00
|
|
|
buildInputs = [ qt4 ];
|
2011-07-11 11:49:21 +01:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
2011-07-11 11:49:21 +01:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
sed -i include/QtCrypto/qca_publickey.h -e '/EMSA3_Raw/a,\
|
|
|
|
EMSA3_SHA224, ///< SHA224, with EMSA3 (ie PKCS#1 Version 1.5) encoding\
|
|
|
|
EMSA3_SHA256, ///< SHA256, with EMSA3 (ie PKCS#1 Version 1.5) encoding\
|
|
|
|
EMSA3_SHA384, ///< SHA384, with EMSA3 (ie PKCS#1 Version 1.5) encoding\
|
|
|
|
EMSA3_SHA512 ///< SHA512, with EMSA3 (ie PKCS#1 Version 1.5) encoding'
|
|
|
|
'';
|
2011-03-02 18:50:00 +00:00
|
|
|
|
2013-07-11 07:26:06 +01:00
|
|
|
patches = [ ./gcc47.patch ];
|
|
|
|
|
2011-03-02 18:50:00 +00:00
|
|
|
configureFlags = "--no-separate-debug-info";
|
2011-07-11 11:49:21 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-12-26 15:26:01 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt Cryptographic Architecture";
|
|
|
|
license = "LGPL";
|
|
|
|
homepage = http://delta.affinix.com/qca;
|
|
|
|
maintainers = [ maintainers.sander maintainers.urkud ];
|
|
|
|
};
|
|
|
|
}
|