Merge pull request #34347 from aneeshusa/make-bsdtar-available-for-vagrant

vagrant: Make bsdtar available to extract boxes
This commit is contained in:
adisbladis 2018-01-28 09:57:08 +08:00 committed by GitHub
commit a7794d287b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {