mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-18 07:21:24 +01:00
Run shellcheck on direnvrc during checkPhase
This commit is contained in:
parent
35dfac9604
commit
3f5f7a602d
2 changed files with 8 additions and 1 deletions
|
|
@ -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"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue