linkBinIntoOwnPackage: guard against the empty-bin/ case
This commit is contained in:
@@ -137,6 +137,14 @@
|
||||
;
|
||||
in
|
||||
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 = ''
|
||||
# not all packages ship manpages or docs,
|
||||
# but we can't know if that's the case upfront, generically.
|
||||
|
Reference in New Issue
Block a user