Run shellcheck on direnvrc during checkPhase

This commit is contained in:
Bryan Bennett 2024-08-11 12:18:57 -04:00
parent 35dfac9604
commit 3f5f7a602d
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
2 changed files with 8 additions and 1 deletions

View file

@ -11,6 +11,7 @@
, re
, reason
, sha
, shellcheck
, upx
,
}:
@ -38,6 +39,9 @@ buildDunePackage {
# patchELF can't handle UPX'd binaries
# We produce a static OCaml binary that
dontPatchELF = true;
postCheck = ''
${shellcheck}/bin/shellcheck direnvrc
'';
postPatch = ''
substituteInPlace direnvrc --replace-fail "@flake_env@" "$out/bin/flake_env"
'';