mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
writeShellApplication: run pre/postCheck hooks
This commit is contained in:
parent
949182a4a2
commit
d8ec0eeab7
@ -292,8 +292,10 @@ rec {
|
||||
'';
|
||||
|
||||
checkPhase = if checkPhase == null then ''
|
||||
runHook preCheck
|
||||
${stdenv.shell} -n $out/bin/${name}
|
||||
${shellcheck}/bin/shellcheck $out/bin/${name}
|
||||
runHook postCheck
|
||||
''
|
||||
else checkPhase;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user