mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
fb73ce99f2
* Added GNU MP, use it in pycrypto. svn path=/nixpkgs/trunk/; revision=7343
16 lines
405 B
Nix
16 lines
405 B
Nix
{stdenv, fetchurl, python, gmp}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pycrypto-2.0.1";
|
|
src = fetchurl {
|
|
url = http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz;
|
|
md5 = "4d5674f3898a573691ffb335e8d749cd";
|
|
};
|
|
buildInputs = [python gmp];
|
|
buildPhase = "true";
|
|
installPhase = "
|
|
python ./setup.py build_ext --library-dirs=${gmp}/lib
|
|
python ./setup.py install --prefix=$out
|
|
";
|
|
}
|