diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index f8c7bd00eb09..0c373d1b215a 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -1699,12 +1699,10 @@ let # Mongodb incorrectly names all of their binaries main # Let's work around this with our own installer - installPhase = '' - mkdir -p $bin/bin + buildPhase = '' while read b; do - rm -f go/bin/main go install $goPackagePath/$b/main - cp go/bin/main $bin/bin/$b + mv go/bin/main go/bin/$b done < <(find go/src/$goPackagePath -name main | xargs dirname | xargs basename -a) ''; };