Merge pull request #52 from pikajude/so-copy

Exclude .so files from exe copy
This commit is contained in:
Nicolas Mattia 2020-01-14 20:26:25 +01:00 committed by GitHub
commit 32a63fd415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,9 @@ let
${lib.optionalString copyBins ''
if [ -d out ]; then
mkdir -p $out/bin
find out -type f -executable -exec cp {} $out/bin \;
find out -type f -executable \
-not -name '*.so' -a -not -name '*.dylib' \
-exec cp {} $out/bin \;
fi
''}