3
0
Fork 0
forked from mirrors/nixpkgs

mongo-tools: fix build

This commit is contained in:
Luca Bruno 2015-08-31 11:17:24 +02:00
parent 4725d21583
commit 3e391b839a

View file

@ -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)
'';
};