python3: add pythonForBuild as parameter, fixes python3Minimal

`pythonForBuild` exists for cross-compilation. When one overrides
python, one needs to ensure pythonForBuild matches.
This commit is contained in:
Frederik Rietdijk
2019-11-21 22:00:14 +01:00
parent 26328a4cf2
commit 1939a97811
2 changed files with 3 additions and 1 deletions

View File

@@ -129,6 +129,7 @@ in rec {
# Minimal versions of Python (built without optional dependencies)
python3Minimal = (python37.override {
self = python3Minimal;
pythonForBuild = pkgs.buildPackages.python3Minimal;
# strip down that python version as much as possible
openssl = null;
readline = null;