vagrant: Fix dependencies for version 2.0.2

The version was bumped in #36081,
but the dependencies were not updated,
causing Vagrant to fail at runtime.

Fix the dependencies (via bundix),
and add an `installCheckPhase` to the derviation
to catch this in the future.
This commit is contained in:
Aneesh Agrawal
2018-03-03 23:31:00 -08:00
parent fced35fa44
commit 89d0307a39
3 changed files with 32 additions and 23 deletions
+10 -1
View File
@@ -28,7 +28,7 @@ in buildRubyGem rec {
gemName = "vagrant";
inherit version;
doCheck = true;
doInstallCheck = true;
dontBuild = false;
src = fetchurl { inherit url sha256; };
@@ -44,6 +44,15 @@ in buildRubyGem rec {
--prefix PATH ':' "${lib.getBin libarchive}/bin"
'';
installCheckPhase = ''
if [[ "$("$out/bin/vagrant" --version)" == "Vagrant ${version}" ]]; then
echo 'Vagrant smoke check passed'
else
echo 'Vagrant smoke check failed'
return 1
fi
'';
passthru = {
inherit ruby deps;
};