diff --git a/default.nix b/default.nix index 213b284..eb2b319 100644 --- a/default.nix +++ b/default.nix @@ -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";