anchor.diff:  { stdenv, fetchurl, fetchpatch, dpkg, curl, libarchive, openssl, ruby, buildRubyGem, libiconv
  -, libxml2, libxslt, makeWrapper }:
  -
  -assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
  +, libxml2, libxslt, makeWrapper, p7zip, xar, gzip, cpio }:
   
   let
     version = "1.8.6";
  
positive.code:   postFixup = ''
      chmod +x "$out/opt/vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler/templates/Executable"
      chmod +x "$out/opt/vagrant/embedded/gems/gems/vagrant-$version/plugins/provisioners/salt/bootstrap-salt.sh"
    '';
  }
  
negative.code:     homepage    = http://vagrantup.com;
      license     = licenses.mit;
      maintainers = with maintainers; [ lovek323 globin jgeerds kamilchm ];
      platforms   = with platforms; linux ++ darwin;
    };
  
    buildInputs = [ makeWrapper ]
      ++ stdenv.lib.optional stdenv.isDarwin [ p7zip xar gzip cpio ];
  
    unpackPhase = if stdenv.isLinux
      then ''
        ${dpkg}/bin/dpkg-deb -x "$src" .
      ''
      else ''
        7z x $src
        cd Vagrant/
        xar -xf Vagrant.pkg
        cd core.pkg/
        cat Payload | gzip -d - | cpio -id
  
        # move unpacked directories to match unpacked .deb from linux,
        # so installPhase can be shared
        mkdir -p opt/vagrant/ usr/
        mv embedded opt/vagrant/embedded
        mv bin usr/bin
      '';
  
    buildPhase = "";
  
  