linkBinIntoOwnPackage: guard against the empty-bin/ case

This commit is contained in:
2025-07-23 22:55:59 +00:00
parent 96373e7eaf
commit 0066b11754

View File

@@ -137,6 +137,14 @@
; ;
in in
linkIntoOwnPackage pkg paths' { linkIntoOwnPackage pkg paths' {
postInstallCheck = ''
# assert that there's *something* in `bin/`
# if there isn't, the wildcard won't expand, and the `test -x` will fail.
binFiles=($out/bin/*)
for f in "''${binFiles[@]}"; do
test -x "$f"
done
'';
postFixup = '' postFixup = ''
# not all packages ship manpages or docs, # not all packages ship manpages or docs,
# but we can't know if that's the case upfront, generically. # but we can't know if that's the case upfront, generically.