qt6.qtwebengine: correct how NIX_BUILD_CORES is propagated to the gn ninja

port of https://github.com/NixOS/nixpkgs/pull/37889
This commit is contained in:
Nick Cao 2022-10-16 09:34:23 +08:00
parent d92b297a77
commit 0badfc4936
No known key found for this signature in database

View file

@ -228,6 +228,10 @@ qtModule {
requiredSystemFeatures = [ "big-parallel" ]; requiredSystemFeatures = [ "big-parallel" ];
preConfigure = ''
export NINJAFLAGS="-j$NIX_BUILD_CORES"
'';
postInstall = '' postInstall = ''
# This is required at runtime # This is required at runtime
mkdir $out/libexec mkdir $out/libexec