dropbox: patch all files in output

This commit is contained in:
Thomas Tuegel 2017-03-29 07:36:10 -05:00
parent 2e591bac0d
commit 97518649fb
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -104,7 +104,7 @@ in stdenv.mkDerivation {
INTERP=$(cat $NIX_CC/nix-support/dynamic-linker)
RPATH="${ldpath}:$out/${appdir}"
getType='s/ *Type: *\([A-Z]*\) (.*/\1/'
find "$out/${appdir}" -type f -a -perm -0100 -print | while read obj; do
find "$out/${appdir}" -type f -print | while read obj; do
dynamic=$(readelf -S "$obj" 2>/dev/null | grep "DYNAMIC" || true)
if [[ -n "$dynamic" ]]; then