mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Modified the Python 2.7 expression so that the interpreter has unconditional
OpenSSL support. Having OpenSSL available at the time the core interpreter is built enables all kinds of important crypto features (i.e. additional hashlib algorithms, etc.) that otherwise won't be available. svn path=/nixpkgs/trunk/; revision=32435
This commit is contained in:
parent
3a414e0292
commit
95cbf4ed55
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, python, makeWrapper, docutils, unzip
|
||||
, guiSupport ? false, tk ? null, ssl, curses }:
|
||||
, guiSupport ? false, tk ? null, curses }:
|
||||
|
||||
let
|
||||
name = "mercurial-2.0.2";
|
||||
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
inherit python; # pass it so that the same version can be used in hg2git
|
||||
pythonPackages = [ ssl curses ];
|
||||
pythonPackages = [ curses ];
|
||||
|
||||
buildInputs = [ python makeWrapper docutils unzip ];
|
||||
|
||||
@ -35,7 +35,7 @@ stdenv.mkDerivation {
|
||||
''
|
||||
for i in $(cd $out/bin && ls); do
|
||||
wrapProgram $out/bin/$i \
|
||||
--prefix PYTHONPATH : "$(toPythonPath "$out ${ssl} ${curses}")" \
|
||||
--prefix PYTHONPATH : "$(toPythonPath "$out ${curses}")" \
|
||||
$WRAP_TK
|
||||
done
|
||||
|
||||
|
@ -38,7 +38,7 @@ let
|
||||
|
||||
buildInputs =
|
||||
optional (stdenv ? gcc && stdenv.gcc.libc != null) stdenv.gcc.libc ++
|
||||
[ bzip2 ]
|
||||
[ bzip2 openssl ]
|
||||
++ optional zlibSupport zlib
|
||||
++ optionals stdenv.isDarwin [ darwinArchUtility darwinSwVersUtility ];
|
||||
|
||||
@ -172,11 +172,6 @@ let
|
||||
deps = [ sqlite ];
|
||||
};
|
||||
|
||||
ssl = buildInternalPythonModule {
|
||||
moduleName = "ssl";
|
||||
deps = [ openssl ];
|
||||
};
|
||||
|
||||
tkinter = buildInternalPythonModule {
|
||||
moduleName = "tkinter";
|
||||
deps = [ tcl tk x11 ];
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ fetchurl, buildPythonPackage, ssl }:
|
||||
{ fetchurl, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage {
|
||||
name = "offlineimap-6.2.0.2";
|
||||
@ -8,8 +8,6 @@ buildPythonPackage {
|
||||
sha256 = "1w69qv1dm37m53k8cd068lk5z3qjlscnjxr397gs8kdsfds67v7c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ssl ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
|
@ -1110,9 +1110,7 @@ let
|
||||
|
||||
odt2txt = callPackage ../tools/text/odt2txt { };
|
||||
|
||||
offlineimap = callPackage ../tools/networking/offlineimap {
|
||||
ssl = pythonPackages.ssl;
|
||||
};
|
||||
offlineimap = callPackage ../tools/networking/offlineimap { };
|
||||
|
||||
opendbx = callPackage ../development/libraries/opendbx { };
|
||||
|
||||
@ -7185,7 +7183,7 @@ let
|
||||
};
|
||||
|
||||
mercurial = callPackage ../applications/version-management/mercurial {
|
||||
inherit (pythonPackages) ssl curses;
|
||||
inherit (pythonPackages) curses;
|
||||
guiSupport = false; # use mercurialFull to get hgk GUI
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user