Add missing runHooks
This commit is contained in:
parent
51c4e949bb
commit
13c34cbabc
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ stdenv.mkDerivation {
|
|||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
shellcheck git-check-assertions test.bats
|
||||
git init
|
||||
git config user.email test
|
||||
|
|
@ -47,11 +48,13 @@ stdenv.mkDerivation {
|
|||
git checkout -b main
|
||||
git commit --allow-empty -m "initial"
|
||||
./test.bats
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp $src/git-check-assertions $out/bin/git-check-assertions
|
||||
chmod +x $out/bin/git-check-assertions
|
||||
|
|
@ -62,6 +65,7 @@ stdenv.mkDerivation {
|
|||
gnused
|
||||
]
|
||||
}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta.mainProgram = "git-check-assertions";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue