qt6.qtbase: set strictDeps, remove python3 from buildInputs to reduce closure size

python3 is references in the shebang of three scripts:

/nix/store/gbi67akslfd2n5d8q4vxpy8qzih31myl-qtbase-6.5.0
└───libexec/qt-testrunner.py: …#!/nix/store/fdqpyj613dr0v1l1lrzqhzay7sk4xg87-python3-3.10.10/bin/python3.# C…
    libexec/sanitizer-testrunner.py: …#!/nix/store/fdqpyj613dr0v1l1lrzqhzay7sk4xg87-python3-3.10.10/bin/python3.# C…
    mkspecs/features/uikit/devices.py: …#!/nix/store/fdqpyj613dr0v1l1lrzqhzay7sk4xg87-python3-3.10.10/bin/python3.# C…
    → /nix/store/fdqpyj613dr0v1l1lrzqhzay7sk4xg87-python3-3.10.10

All of them are normally not used in the build process of packages thus
the shebangs batching can be safely skipped.
This commit is contained in:
Nick Cao 2023-04-16 10:12:54 +08:00
parent 6e8561539e
commit fca522b538
No known key found for this signature in database

View File

@ -178,7 +178,6 @@ stdenv.mkDerivation rec {
] ++ lib.optional libGLSupported libGL;
buildInputs = [
python3
at-spi2-core
] ++ lib.optionals (!stdenv.isDarwin) [
libinput
@ -197,6 +196,8 @@ stdenv.mkDerivation rec {
propagatedNativeBuildInputs = [ lndir ];
strictDeps = true;
enableParallelBuilding = true;
inherit patches;