1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/development/libraries/crypto++/default.nix
Ludovic Courtès 2a5a982ad1 Add Crypto++, a C++ cryptography library.
svn path=/nixpkgs/trunk/; revision=12444
2008-07-29 14:26:03 +00:00

28 lines
746 B
Nix

{ 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";
};
}