From 3e391b839ae6e9d7440bc8626d8f9c1c925aa81b Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Mon, 31 Aug 2015 11:17:24 +0200 Subject: [PATCH] mongo-tools: fix build --- pkgs/top-level/go-packages.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index f8c7bd00eb0..0c373d1b215 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) ''; };