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

also suppresses errors if those directories are not present
wip/yesman
Jörg Thalheim 4 years ago
parent a19b2b4c03
commit eab48f5a1b
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
  1. 2
      pkgs/development/go-modules/generic/default.nix
  2. 3
      pkgs/development/go-packages/generic/default.nix

@ -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…
Cancel
Save