Add missing runHooks

This commit is contained in:
Sven van Heugten 2026-02-22 15:39:52 +01:00
parent 51c4e949bb
commit 13c34cbabc
No known key found for this signature in database
GPG key ID: D612F88666F4F660

View file

@ -40,6 +40,7 @@ stdenv.mkDerivation {
]; ];
checkPhase = '' checkPhase = ''
runHook preCheck
shellcheck git-check-assertions test.bats shellcheck git-check-assertions test.bats
git init git init
git config user.email test git config user.email test
@ -47,11 +48,13 @@ stdenv.mkDerivation {
git checkout -b main git checkout -b main
git commit --allow-empty -m "initial" git commit --allow-empty -m "initial"
./test.bats ./test.bats
runHook postCheck
''; '';
doCheck = true; doCheck = true;
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
cp $src/git-check-assertions $out/bin/git-check-assertions cp $src/git-check-assertions $out/bin/git-check-assertions
chmod +x $out/bin/git-check-assertions chmod +x $out/bin/git-check-assertions
@ -62,6 +65,7 @@ stdenv.mkDerivation {
gnused gnused
] ]
} }
runHook postInstall
''; '';
meta.mainProgram = "git-check-assertions"; meta.mainProgram = "git-check-assertions";