summary refs log tree commit diff
path: root/pkgs/development/libraries/qca2/default.nix
blob: 952bdfa29cee7b55bb00c9ae364bf470d713af1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl, which, qt4 }:

stdenv.mkDerivation rec {
  name = "qca-2.0.3";
  
  src = fetchurl {
    url = "http://delta.affinix.com/download/qca/2.0/${name}.tar.bz2";
    sha256 = "0pw9fkjga8vxj465wswxmssxs4wj6zpxxi6kzkf4z5chyf4hr8ld";
  };
  
  buildInputs = [ qt4 ];
  
  nativeBuildInputs = [ which ];

  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'
    '';

  patches = [ ./gcc47.patch ];

  configureFlags = "--no-separate-debug-info";

  enableParallelBuilding = true;
  
  meta = with stdenv.lib; {
    description = "Qt Cryptographic Architecture";
    license = "LGPL";
    homepage = http://delta.affinix.com/qca;
    maintainers = [ maintainers.sander maintainers.urkud ];
  };
}