From 6575fff60f7ca5371ae8796415a98d0ef9256a11 Mon Sep 17 00:00:00 2001 From: Raymond Gauthier Date: Tue, 5 Oct 2021 01:38:21 -0400 Subject: [PATCH] vscode-utils: fix configure and build phase As it was, it was impossible to implement pre / post hook for those as their default implementation was not calling the run hook helper as they should have. --- pkgs/misc/vscode-extensions/vscode-utils.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/vscode-extensions/vscode-utils.nix b/pkgs/misc/vscode-extensions/vscode-utils.nix index 1de3bce3d0db..da3630f97c41 100644 --- a/pkgs/misc/vscode-extensions/vscode-utils.nix +++ b/pkgs/misc/vscode-extensions/vscode-utils.nix @@ -6,8 +6,14 @@ let # Same as "Unique Identifier" on the extension's web page. # For the moment, only serve as unique extension dir. vscodeExtUniqueId, - configurePhase ? ":", - buildPhase ? ":", + configurePhase ? '' + runHook preConfigure + runHook postConfigure + '', + buildPhase ?'' + runHook preBuild + runHook postBuild + '', dontPatchELF ? true, dontStrip ? true, buildInputs ? [],