Merge pull request #275498 from drupol/electron-add-missing-hooks

electron: add missing phase hooks
This commit is contained in:
Pol Dellaiera 2023-12-20 18:05:05 +01:00 committed by GitHub
commit 5863466ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,8 +174,12 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
};
installPhase = ''
runHook preInstall
mkdir -p $libExecPath
unzip -d $libExecPath out/Release/dist.zip
runHook postInstall
'';
requiredSystemFeatures = [ "big-parallel" ];
@ -187,10 +191,14 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
nativeBuildInputs = [ python3 ];
src = fetchdep info.deps."src/third_party/electron_node";
buildPhase = ''
runHook preBuild
make tar-headers
runHook postBuild
'';
installPhase = ''
runHook preInstall
mv ${name} $out
runHook postInstall
'';
};
};