From cf92e411eeb98b495ec5fc9c589f945aa3ac9ba1 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 1 Sep 2015 01:35:06 -0700 Subject: [PATCH] Revert "mongo-tools: fix build" This reverts commit 3e391b839ae6e9d7440bc8626d8f9c1c925aa81b. This is a slower way to build the tools. Lets get this going in parallel again. Instead of replacing the whole install process, keep the parts which work and do just the binary copying ourselves. --- pkgs/top-level/go-packages.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index df7d2709b52..908682d46b4 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -1701,11 +1701,14 @@ let # Mongodb incorrectly names all of their binaries main # Let's work around this with our own installer - buildPhase = '' + preInstall = '' + mkdir -p $bin/bin while read b; do + rm -f go/bin/main go install $goPackagePath/$b/main - mv go/bin/main go/bin/$b + cp go/bin/main $bin/bin/$b done < <(find go/src/$goPackagePath -name main | xargs dirname | xargs basename -a) + rm -r go/bin ''; };