Skip to content

Commit

Permalink
cpython: Use autoreconfHook to rebuild configure script.
Browse files Browse the repository at this point in the history
In particular this will let us use patches that apply to configure.ac.
  • Loading branch information
gnprice committed May 14, 2020
1 parent f8a8243 commit 52c04b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/interpreters/python/cpython/2.7/default.nix
Expand Up @@ -12,6 +12,7 @@
, zlib
, self
, configd, coreutils
, autoreconfHook
, python-setup-hook
# Some proprietary libs assume UCS2 unicode, especially on darwin :(
, ucsEncoding ? 4
Expand Down Expand Up @@ -186,8 +187,9 @@ let
++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
++ optional (stdenv.isDarwin && configd != null) configd;
nativeBuildInputs =
optionals (stdenv.hostPlatform != stdenv.buildPlatform)
[ buildPackages.stdenv.cc buildPackages.python ];
[ autoreconfHook ]
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)
[ buildPackages.stdenv.cc buildPackages.python ];

mkPaths = paths: {
C_INCLUDE_PATH = makeSearchPathOutput "dev" "include" paths;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/interpreters/python/cpython/default.nix
Expand Up @@ -12,6 +12,7 @@
, zlib
, self
, configd
, autoreconfHook
, python-setup-hook
, nukeReferences
# For the Python package set
Expand Down Expand Up @@ -51,6 +52,7 @@ let
version = with sourceVersion; "${major}.${minor}.${patch}${suffix}";

nativeBuildInputs = [
autoreconfHook
nukeReferences
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
buildPackages.stdenv.cc
Expand Down

0 comments on commit 52c04b0

Please sign in to comment.