Skip to content

Commit

Permalink
python36: 3.6.0 -> 3.6.1
Browse files Browse the repository at this point in the history
(cherry picked from commit 07327cddf6e79704d00f9199d129b0564f5d57f8)
  • Loading branch information
FRidh committed Apr 18, 2017
1 parent 34a565c commit c5b2912
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pkgs/development/interpreters/python/cpython/3.6/default.nix
Expand Up @@ -26,7 +26,7 @@ with stdenv.lib;

let
majorVersion = "3.6";
minorVersion = "0";
minorVersion = "1";
minorVersionSuffix = "";
pythonVersion = majorVersion;
version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
Expand All @@ -47,7 +47,7 @@ in stdenv.mkDerivation {

src = fetchurl {
url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
sha256 = "08inlbb2vb8lahw6wfq654lqk6l1x7ncpggp6a92vqw5yq2gkidh";
sha256 = "0ha03sbakxblzyvlramx5fj0ranzmzx4pa2png6nn8gczkfi0650";
};

NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
Expand All @@ -63,14 +63,6 @@ in stdenv.mkDerivation {
substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
'';

patches = [
(fetchpatch {
name = "glibc-2.25-failed-to-get-random-numbers.patch";
url = https://github.com/python/cpython/commit/ff558f5aba4.patch;
sha256 = "1k12gpn69np94cm942vaf40sv7gsxqf20rv1m3parzgi1gs4hqa3";
})
];

postPatch = ''
# Determinism
substituteInPlace "Lib/py_compile.py" --replace "source_stats['mtime']" "(1 if 'DETERMINISTIC_BUILD' in os.environ else source_stats['mtime'])"
Expand Down

0 comments on commit c5b2912

Please sign in to comment.