From 44391a72b2e08a31680b934df9585ffa326253dc Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sat, 11 Jul 2020 11:07:18 +0200 Subject: mongodb: add basic check For example, it detected the issue fixed in the parent commit (tested on aarch64). --- pkgs/servers/nosql/mongodb/mongodb.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs/servers/nosql') diff --git a/pkgs/servers/nosql/mongodb/mongodb.nix b/pkgs/servers/nosql/mongodb/mongodb.nix index 8ffdbcd63c4c..2c058edbccab 100644 --- a/pkgs/servers/nosql/mongodb/mongodb.nix +++ b/pkgs/servers/nosql/mongodb/mongodb.nix @@ -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; -- cgit 1.4.1