about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycrypto/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pycrypto/default.nix')
-rw-r--r--pkgs/development/python-modules/pycrypto/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pycrypto/default.nix b/pkgs/development/python-modules/pycrypto/default.nix
index ac98ea08c433..67413fa93708 100644
--- a/pkgs/development/python-modules/pycrypto/default.nix
+++ b/pkgs/development/python-modules/pycrypto/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, python}:
+{stdenv, fetchurl, python, gmp}:
 
 stdenv.mkDerivation {
   name = "pycrypto-2.0.1";
@@ -6,7 +6,10 @@ stdenv.mkDerivation {
     url = http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz;
     md5 = "4d5674f3898a573691ffb335e8d749cd";
   };
-  buildInputs = [python];
+  buildInputs = [python gmp];
   buildPhase = "true";
-  installPhase = "python ./setup.py install --prefix=$out";
+  installPhase = "
+    python ./setup.py build_ext --library-dirs=${gmp}/lib
+    python ./setup.py install --prefix=$out
+  ";
 }