aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/crypto++
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-07 09:18:04 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-07 09:18:04 +0000
commita21457ffa899ee53a69651f563cdc035f6f15d19 (patch)
treefa59147f7e969c0f593ca1c8535c5fa204e587ad /pkgs/development/libraries/crypto++
parent3f5643417a699f7acb1922fd08c0c27ad8bbb31e (diff)
Updating crypto++ to 5.6.1
svn path=/nixpkgs/trunk/; revision=32098
Diffstat (limited to 'pkgs/development/libraries/crypto++')
-rw-r--r--pkgs/development/libraries/crypto++/default.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/development/libraries/crypto++/default.nix b/pkgs/development/libraries/crypto++/default.nix
index d22eb738671e..138ee6eb27f5 100644
--- a/pkgs/development/libraries/crypto++/default.nix
+++ b/pkgs/development/libraries/crypto++/default.nix
@@ -1,11 +1,11 @@
{ fetchurl, stdenv, unzip, libtool }:
stdenv.mkDerivation rec {
- name = "crypto++-5.6.0";
+ name = "crypto++-5.6.1";
src = fetchurl {
- url = "mirror://sourceforge/cryptopp/cryptopp560.zip";
- sha256 = "1icbk50mr1sqycqbxbqg703m8aamz23ajgl22ychxdahz2sz08mm";
+ url = "mirror://sourceforge/cryptopp/cryptopp561.zip";
+ sha256 = "0s7jhvnfihikqp1iwpdz03fad62xkjxci6jiahrh6f3sn664vrwq";
};
patches = [ ./pic.patch ]
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
'';
cxxflags = if stdenv.isi686 then "-march=i686" else
- if stdenv.isx86_64 then "-march=nocona" else
+ if stdenv.isx86_64 then "-march=nocona -fPIC" else
"";
configurePhase = ''
@@ -35,12 +35,10 @@ stdenv.mkDerivation rec {
-e '/^CXXFLAGS =/s|-g -O2|-O3|'
'';
- # Deal with one of the crappiest build system around there.
+ # I add what 'enableParallelBuilding' would add to the make call,
+ # if we were using the generic build phase.
buildPhase = ''
- # These guys forgot a file or something.
- : > modexppc.cpp
-
- make PREFIX="$out" all cryptopp.dll
+ make PREFIX="$out" all libcryptopp.so -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
'';
# TODO: Installing cryptotest.exe doesn't seem to be necessary. We run
@@ -48,11 +46,10 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir "$out"
make install PREFIX="$out"
- cp -v cryptopp.dll "$out/lib/libcryptopp.so"
'';
doCheck = true;
- checkPhase = "make test";
+ checkPhase = "LD_LIBRARY_PATH=`pwd` make test";
meta = {
description = "Crypto++, a free C++ class library of cryptographic schemes";