buildGo{module,package}: also fixup $out/{libexec,lib}
also suppresses errors if those directories are not present
This commit is contained in:
parent
a19b2b4c03
commit
eab48f5a1b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user