mongodb-tools: 3.5.13 -> 3.7.2
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
let
|
||||
tools = [
|
||||
"bsondump" "mongodump" "mongoexport" "mongofiles" "mongoimport"
|
||||
"mongooplog" "mongorestore" "mongostat" "mongotop"
|
||||
"mongoreplay" "mongorestore" "mongostat" "mongotop"
|
||||
];
|
||||
in
|
||||
|
||||
@@ -11,7 +11,7 @@ with stdenv.lib;
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "mongo-tools-${version}";
|
||||
version = "3.5.13";
|
||||
version = "3.7.2";
|
||||
rev = "r${version}";
|
||||
|
||||
goPackagePath = "github.com/mongodb/mongo-tools";
|
||||
@@ -21,17 +21,18 @@ buildGoPackage rec {
|
||||
inherit rev;
|
||||
owner = "mongodb";
|
||||
repo = "mongo-tools";
|
||||
sha256 = "00klm4pyx5k39nn4pmfrpnkqxdhbzm7lprgwxszpirzrarh2g164";
|
||||
sha256 = "1y5hd4qw7422sqkj8vmy4agscvin3ck54r515bjrzn69iw73nhfl";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ openssl_1_0_2 libpcap ];
|
||||
|
||||
# Mongodb incorrectly names all of their binaries main
|
||||
# Let's work around this with our own installer
|
||||
buildPhase = ''
|
||||
# move vendored codes so nixpkgs go builder could find it
|
||||
mv go/src/github.com/mongodb/mongo-tools/vendor/src/* go/src/github.com/mongodb/mongo-tools/vendor/
|
||||
|
||||
runHook preBuild
|
||||
${stdenv.lib.concatMapStrings (t: ''
|
||||
go build -o "$bin/bin/${t}" -tags ssl -ldflags "-s -w" $goPackagePath/${t}/main
|
||||
|
||||
Reference in New Issue
Block a user