forked from mirrors/nixpkgs
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
|
# Mongodb incorrectly names all of their binaries main
|
||||||
# Let's work around this with our own installer
|
# Let's work around this with our own installer
|
||||||
installPhase = ''
|
buildPhase = ''
|
||||||
mkdir -p $bin/bin
|
|
||||||
while read b; do
|
while read b; do
|
||||||
rm -f go/bin/main
|
|
||||||
go install $goPackagePath/$b/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)
|
done < <(find go/src/$goPackagePath -name main | xargs dirname | xargs basename -a)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue