From 2a5a982ad1b5a587f4303761214fe102609271a3 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 29 Jul 2008 14:26:03 +0000 Subject: Add Crypto++, a C++ cryptography library. svn path=/nixpkgs/trunk/; revision=12444 --- pkgs/development/libraries/crypto++/default.nix | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/development/libraries/crypto++/default.nix (limited to 'pkgs/development/libraries/crypto++') diff --git a/pkgs/development/libraries/crypto++/default.nix b/pkgs/development/libraries/crypto++/default.nix new file mode 100644 index 00000000000..6ebd5d164db --- /dev/null +++ b/pkgs/development/libraries/crypto++/default.nix @@ -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"; + }; +} \ No newline at end of file -- cgit 1.4.1