From 0badfc4936de7a895165ca170b422c443ca7e289 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 16 Oct 2022 09:34:23 +0800 Subject: [PATCH] qt6.qtwebengine: correct how NIX_BUILD_CORES is propagated to the gn ninja port of https://github.com/NixOS/nixpkgs/pull/37889 --- pkgs/development/libraries/qt-6/modules/qtwebengine.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix index c365f3c06853..4dff38d3acc2 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix @@ -228,6 +228,10 @@ qtModule { requiredSystemFeatures = [ "big-parallel" ]; + preConfigure = '' + export NINJAFLAGS="-j$NIX_BUILD_CORES" + ''; + postInstall = '' # This is required at runtime mkdir $out/libexec