https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
7 lines
211 B
Bash
7 lines
211 B
Bash
# check if the package contains all the files needed
|
|
for x in faxq faxquit hfaxd faxcron faxqclean faxgetty
|
|
do
|
|
test -x "$out/spool/bin/$x"
|
|
done
|
|
test -d "$out/spool/config"
|
|
test -f "$out/spool/etc/setup.cache"
|