mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
vagrant: Make bsdtar available to extract boxes
This commit is contained in:
parent
846b5c42f1
commit
9c33aa8465
1 changed files with 5 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue