summary refs log tree commit diff
path: root/pkgs/development/libraries/qca2
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2011-02-22 09:53:01 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2011-02-22 09:53:01 +0000
commit68299a02025fa99dc4c1f13de9a7fff59159d6dc (patch)
tree5e033c0b47f0b48b9b3840c1c6f719f1db14eeff /pkgs/development/libraries/qca2
parent75f4d9972d0b855cef62fcc8e13251542c9c34df (diff)
downloadnixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.tar
nixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.tar.gz
nixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.tar.bz2
nixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.tar.lz
nixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.tar.xz
nixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.tar.zst
nixpkgs-68299a02025fa99dc4c1f13de9a7fff59159d6dc.zip
Move qca2 outside of kde-4.x
svn path=/nixpkgs/trunk/; revision=26053
Diffstat (limited to 'pkgs/development/libraries/qca2')
-rw-r--r--pkgs/development/libraries/qca2/default.nix24
-rw-r--r--pkgs/development/libraries/qca2/ossl.nix33
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qca2/default.nix b/pkgs/development/libraries/qca2/default.nix
new file mode 100644
index 00000000000..1ddbf40d15e
--- /dev/null
+++ b/pkgs/development/libraries/qca2/default.nix
@@ -0,0 +1,24 @@
+{stdenv, fetchurl, which, qt4}:
+
+stdenv.mkDerivation {
+  name = "qca-2.0.2";
+  src = fetchurl {
+    url = http://delta.affinix.com/download/qca/2.0/qca-2.0.2.tar.bz2;
+    sha256 = "49b5474450104a2298747c243de1451ab7a6aeed4bf7df43ffa4b7128a2837b8";
+  };
+  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'
+  '';
+  meta = with stdenv.lib; {
+    description = "Qt Cryptographic Architecture";
+    license = "LGPL";
+    homepage = http://delta.affinix.com/qca;
+    maintainers = [ maintainers.sander maintainers.urkud ];
+  };
+}
diff --git a/pkgs/development/libraries/qca2/ossl.nix b/pkgs/development/libraries/qca2/ossl.nix
new file mode 100644
index 00000000000..1e0c583b7a5
--- /dev/null
+++ b/pkgs/development/libraries/qca2/ossl.nix
@@ -0,0 +1,33 @@
+{stdenv, fetchurl, fetchsvn, qt4, qca2, openssl, which}:
+
+stdenv.mkDerivation rec {
+  version = "2.0.0-beta3";
+  name = "qca-ossl-${version}";
+  src = fetchurl {
+    url = "http://delta.affinix.com/download/qca/2.0/plugins/${name}.tar.bz2";
+    sha256 = "0yy68racvx3clybry2i1bw5bz9yhxr40p3xqagxxb15ihvsrzq08";
+  };
+  # 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";
+  };
+  buildInputs = [ qt4 qca2 openssl ];
+  buildNativeInputs = [ which ];
+  dontAddPrefix = true;
+  configureFlags="--no-separate-debug-info --with-qca=${qca2}
+    --with-openssl-inc=${openssl}/include --with-openssl-lib=${openssl}/lib";
+  preConfigure=''
+    cp ${svn_src}/qca-ossl.cpp .
+
+    configureFlags="$configureFlags --plugins-path=$out/lib/qt4/plugins"
+  '';
+  meta = with stdenv.lib; {
+    description = "Qt Cryptographic Architecture OpenSSL plugin";
+    license = "LGPL";
+    homepage = http://delta.affinix.com/qca;
+    maintainers = [ maintainers.urkud ];
+  };
+}