* Added wxHaskell.
* Added GNU MP, use it in pycrypto. svn path=/nixpkgs/trunk/; revision=7343
This commit is contained in:
11
pkgs/development/libraries/gmp/default.nix
Normal file
11
pkgs/development/libraries/gmp/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{stdenv, fetchurl, m4}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gmp-4.2.1";
|
||||
src = fetchurl {
|
||||
url = http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.1.tar.bz2;
|
||||
md5 = "091c56e0e1cca6b09b17b69d47ef18e3";
|
||||
};
|
||||
buildInputs = [m4];
|
||||
doCheck = true;
|
||||
}
|
||||
13
pkgs/development/libraries/haskell/wxHaskell/default.nix
Normal file
13
pkgs/development/libraries/haskell/wxHaskell/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{stdenv, fetchurl, unzip, ghc, wxGTK}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "wxHaskell-0.9.4-1";
|
||||
src = fetchurl {
|
||||
url = http://mesh.dl.sourceforge.net/sourceforge/wxhaskell/wxhaskell-src-0.9.4-1.zip;
|
||||
md5 = "69c3876e1c8ed810cef9db7ed442cb89";
|
||||
};
|
||||
#builder = ./builder.sh;
|
||||
buildInputs = [unzip ghc wxGTK];
|
||||
installCommand = "make install-files";
|
||||
# inherit ghc;
|
||||
}
|
||||
@@ -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
|
||||
";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user