forked from mirrors/nixpkgs
python3Minimal: enable strictDeps
remove unused let binding from the main expr verified that cross-compiling still works
This commit is contained in:
parent
f002ffed9a
commit
6b46fa896e
|
@ -104,8 +104,6 @@ let
|
|||
|
||||
version = with sourceVersion; "${major}.${minor}.${patch}${suffix}";
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = optionals (!stdenv.isDarwin) [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
|
@ -186,7 +184,8 @@ in with passthru; stdenv.mkDerivation {
|
|||
pname = "python3";
|
||||
inherit version;
|
||||
|
||||
inherit buildInputs nativeBuildInputs;
|
||||
inherit nativeBuildInputs;
|
||||
buildInputs = [ bash ] ++ buildInputs; # bash is only for patchShebangs
|
||||
|
||||
src = fetchurl {
|
||||
url = with sourceVersion; "https://www.python.org/ftp/python/${major}.${minor}.${patch}/Python-${version}.tar.xz";
|
||||
|
@ -465,7 +464,7 @@ in with passthru; stdenv.mkDerivation {
|
|||
|
||||
preFixup = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||
# Ensure patch-shebangs uses shebangs of host interpreter.
|
||||
export PATH=${lib.makeBinPath [ "$out" bash ]}:$PATH
|
||||
export PATH=${lib.makeBinPath [ "$out" ]}:$PATH
|
||||
'';
|
||||
|
||||
# Add CPython specific setup-hook that configures distutils.sysconfig to
|
||||
|
|
|
@ -231,6 +231,8 @@ in {
|
|||
enableLTO = false;
|
||||
mimetypesSupport = false;
|
||||
} // sources.python39)).overrideAttrs(old: {
|
||||
# TODO(@Artturin): Add this to the main cpython expr
|
||||
strictDeps = true;
|
||||
pname = "python3-minimal";
|
||||
meta = old.meta // {
|
||||
maintainers = [];
|
||||
|
|
Loading…
Reference in a new issue