From fca522b53865fb9d890e0b5958a3120fff67e566 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 16 Apr 2023 10:12:54 +0800 Subject: [PATCH] qt6.qtbase: set strictDeps, remove python3 from buildInputs to reduce closure size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- pkgs/development/libraries/qt-6/modules/qtbase.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/qt-6/modules/qtbase.nix b/pkgs/development/libraries/qt-6/modules/qtbase.nix index 1f8b346f79c5..4a4ebb320757 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase.nix @@ -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;