buildGo{module,package}: also fixup $out/{libexec,lib}

also suppresses errors if those directories are not present
This commit is contained in:
Jörg Thalheim 2020-08-28 12:50:22 +01:00
parent a19b2b4c03
commit eab48f5a1b
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
2 changed files with 2 additions and 3 deletions

View file

@ -235,7 +235,7 @@ let
'';
preFixup = (args.preFixup or "") + ''
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/{bin,libexec,lib} -type f 2>/dev/null | xargs -r ${removeExpr removeReferences} || true
'';
strictDeps = true;

View file

@ -211,8 +211,7 @@ let
'';
preFixup = preFixup + ''
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/libexec -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/{bin,libexec,lib} -type f 2>/dev/null | xargs -r ${removeExpr removeReferences} || true
'';
strictDeps = true;