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 = ''
|
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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue