mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
vagrant: Make bsdtar available to extract boxes
This commit is contained in:
parent
846b5c42f1
commit
9c33aa8465
@ -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 New Issue
Block a user