summary refs log tree commit diff
path: root/pkgs/development/libraries/qca2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/qca2/default.nix')
-rw-r--r--pkgs/development/libraries/qca2/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qca2/default.nix b/pkgs/development/libraries/qca2/default.nix
new file mode 100644
index 000000000000..6af622c0a15b
--- /dev/null
+++ b/pkgs/development/libraries/qca2/default.nix
@@ -0,0 +1,34 @@
+{ 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 ];
+  
+  buildNativeInputs = [ 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'
+    '';
+
+  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 ];
+  };
+}