diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-12-20 18:05:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 18:05:05 +0100 |
commit | 5863466ef649903b880652bfff62a9e206084437 (patch) | |
tree | cc36bddbfff2a310ccbb3ee85a91540bf37705d7 /pkgs/development/tools | |
parent | 813da5f672ed58396b5994883a674db941b12b39 (diff) | |
parent | f3915a9fa14f5950526ee2ad2cc35741e46b0a76 (diff) |
Merge pull request #275498 from drupol/electron-add-missing-hooks
electron: add missing phase hooks
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/electron/common.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/tools/electron/common.nix b/pkgs/development/tools/electron/common.nix index 78ee9fee239d9..749aafc449241 100644 --- a/pkgs/development/tools/electron/common.nix +++ b/pkgs/development/tools/electron/common.nix @@ -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 ''; }; }; |