mongodb: add basic check

For example, it detected the issue fixed in the parent commit
(tested on aarch64).
This commit is contained in:
Vladimír Čunát 2020-07-11 11:07:18 +02:00
parent eb1ce34d3d
commit 44391a72b2
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -102,6 +102,13 @@ in stdenv.mkDerivation rec {
rm -f "$out/bin/install_compass" || true
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
"$out/bin/mongo" --version
runHook postInstallCheck
'';
prefixKey = "--prefix=";
enableParallelBuilding = true;