mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02: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 a new issue