mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
matrix-appservice-discord: run pre/post hooks for overridden phases
This commit is contained in:
parent
895da4caae
commit
e322e38379
@ -56,14 +56,22 @@ in mkYarnPackage rec {
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
# compile TypeScript sources
|
||||
yarn --offline build
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
# the default 2000ms timeout is sometimes too short on our busy builders
|
||||
yarn --offline test --timeout 10000
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user