diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-08-28 12:50:22 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-08-28 13:19:11 +0100 |
commit | eab48f5a1bff12467f196c182f349ce11fc63e06 (patch) | |
tree | 2e3a4a2206445a9d39eda49dc80d774752639be4 /pkgs/development/go-modules | |
parent | a19b2b4c03c1c409d7d505b95741a7c9355884bc (diff) | |
download | nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.tar nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.tar.gz nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.tar.bz2 nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.tar.lz nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.tar.xz nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.tar.zst nixpkgs-eab48f5a1bff12467f196c182f349ce11fc63e06.zip |
buildGo{module,package}: also fixup `$out/{libexec,lib}`
also suppresses errors if those directories are not present
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 402c3e781ad..7db4992d1d6 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/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; |