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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user