cryptopp: fix via minor update

This commit is contained in:
Vladimír Čunát
2013-02-23 10:54:35 +01:00
parent 937fa72d4f
commit e6b245a3ee
3 changed files with 7 additions and 95 deletions
@@ -1,20 +1,16 @@
{ fetchurl, stdenv, unzip, libtool }:
stdenv.mkDerivation rec {
name = "crypto++-5.6.1";
name = "crypto++-5.6.2";
src = fetchurl {
url = "mirror://sourceforge/cryptopp/cryptopp561.zip";
sha256 = "0s7jhvnfihikqp1iwpdz03fad62xkjxci6jiahrh6f3sn664vrwq";
url = "mirror://sourceforge/cryptopp/cryptopp562.zip";
sha256 = "0x1mqpz1v071cfrw4grbw7z734cxnpry1qh2b6rsmcx6nkyd5gsw";
};
patches = [
./pic.patch
./salsa-gcc4.6.patch
] ++ stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch;
patches = stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch;
buildInputs = [ unzip ];
buildInputs = [ unzip libtool ];
# Unpack the thing in a subdirectory.
unpackPhase = ''
@@ -37,7 +33,7 @@ stdenv.mkDerivation rec {
# I add what 'enableParallelBuilding' would add to the make call,
# if we were using the generic build phase.
buildPhase = ''
make PREFIX="$out" all libcryptopp.so -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
make PREFIX="$out" all -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
'';
# TODO: Installing cryptotest.exe doesn't seem to be necessary. We run
@@ -53,7 +49,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Crypto++, a free C++ class library of cryptographic schemes";
homepage = http://cryptopp.com/;
license = "Public Domain";
license = "Boost 1.0";
maintainers = [ stdenv.lib.maintainers.ludo ];
};
}