Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions pkgs/development/interpreters/python/cpython/3.4/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ stdenv, fetchurl, fetchpatch
, bzip2
, expat
, libffi
Expand Down Expand Up @@ -63,7 +63,13 @@ in stdenv.mkDerivation {
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
'';

patches = [
(fetchpatch { # Make distutils choose CXX to compile C++, see https://bugs.python.org/issue1222585
url = "https://bugs.python.org/file47046/python-3.x-distutils-C++.patch";
sha256 = "0dgdn9k2kmw4wh90vdnjcrnn97ylxgx7mbn9l87fwz6j501jqvk8";
addPrefixes = true;
})
];
postPatch = ''
# Determinism
substituteInPlace "Lib/py_compile.py" --replace "source_stats['mtime']" "(1 if 'DETERMINISTIC_BUILD' in os.environ else source_stats['mtime'])"
Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/interpreters/python/cpython/3.5/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ in stdenv.mkDerivation {
'';

patches = [
(fetchpatch { # Make distutils choose CXX to compile C++, see https://bugs.python.org/issue1222585
url = "https://bugs.python.org/file47046/python-3.x-distutils-C++.patch";
sha256 = "0dgdn9k2kmw4wh90vdnjcrnn97ylxgx7mbn9l87fwz6j501jqvk8";
addPrefixes = true;
})
./no-ldconfig.patch
];

Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/interpreters/python/cpython/3.6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ in stdenv.mkDerivation {
'';

patches = [
(fetchpatch { # Make distutils choose CXX to compile C++, see https://bugs.python.org/issue1222585
url = "https://bugs.python.org/file47046/python-3.x-distutils-C++.patch";
sha256 = "0dgdn9k2kmw4wh90vdnjcrnn97ylxgx7mbn9l87fwz6j501jqvk8";
addPrefixes = true;
})
./no-ldconfig.patch
];

Expand Down