mongo-tools: fix build
This commit is contained in:
parent
4725d21583
commit
3e391b839a
@ -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)
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user