forked from mirrors/nixpkgs
Add Crypto++, a C++ cryptography library.
svn path=/nixpkgs/trunk/; revision=12444
This commit is contained in:
parent
e79ae4bec4
commit
2a5a982ad1
28
pkgs/development/libraries/crypto++/default.nix
Normal file
28
pkgs/development/libraries/crypto++/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ fetchurl, stdenv, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "crypto++-5.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/cryptopp/cryptopp552.zip";
|
||||
sha256 = "0nd783wk3gl36nfa9zmwxw6pn4n5p8mld7jf5dc1j9iy0gmqv3q7";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
# Unpack the thing in a subdirectory.
|
||||
unpackPhase = ''
|
||||
echo "unpacking Crypto++ to \`${name}' from \`$PWD'..."
|
||||
mkdir "${name}" && (cd "${name}" && unzip "$src")
|
||||
sourceRoot="$PWD/${name}"
|
||||
'';
|
||||
|
||||
buildPhase = ''make PREFIX="$out"'';
|
||||
installPhase = ''mkdir "$out" && make install PREFIX="$out"'';
|
||||
|
||||
meta = {
|
||||
description = "Crypto++, a free C++ class library of cryptographic schemes";
|
||||
homepage = http://cryptopp.com/;
|
||||
license = "Public Domain";
|
||||
};
|
||||
}
|
|
@ -2533,6 +2533,10 @@ let pkgs = rec {
|
|||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
cryptopp = import ../development/libraries/crypto++ {
|
||||
inherit fetchurl stdenv unzip;
|
||||
};
|
||||
|
||||
cyrus_sasl = import ../development/libraries/cyrus-sasl {
|
||||
inherit fetchurl stdenv openssl db4 gettext;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue