vagrant: Make bsdtar available to extract boxes

This commit is contained in:
Aneesh Agrawal 2018-01-27 15:47:43 -08:00
parent 846b5c42f1
commit 9c33aa8465

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, buildRubyGem, bundlerEnv, ruby }:
{ lib, fetchurl, buildRubyGem, bundlerEnv, ruby, libarchive }:
let
version = "2.0.1";
@ -36,9 +36,12 @@ in buildRubyGem rec {
./unofficial-installation-nowarn.patch
];
# PATH additions:
# - libarchive: Make `bsdtar` available for extracting downloaded boxes
postInstall = ''
wrapProgram "$out/bin/vagrant" \
--set GEM_PATH "${deps}/lib/ruby/gems/${ruby.version.libDir}"
--set GEM_PATH "${deps}/lib/ruby/gems/${ruby.version.libDir}" \
--prefix PATH ':' "${lib.getBin libarchive}/bin"
'';
passthru = {