electron: add missing phase hooks
This commit is contained in:
parent
8e1759ec6f
commit
f3915a9fa1
@ -174,8 +174,12 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
|
|||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $libExecPath
|
mkdir -p $libExecPath
|
||||||
unzip -d $libExecPath out/Release/dist.zip
|
unzip -d $libExecPath out/Release/dist.zip
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
requiredSystemFeatures = [ "big-parallel" ];
|
requiredSystemFeatures = [ "big-parallel" ];
|
||||||
@ -187,10 +191,14 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
|
|||||||
nativeBuildInputs = [ python3 ];
|
nativeBuildInputs = [ python3 ];
|
||||||
src = fetchdep info.deps."src/third_party/electron_node";
|
src = fetchdep info.deps."src/third_party/electron_node";
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
make tar-headers
|
make tar-headers
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mv ${name} $out
|
mv ${name} $out
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user