anchor.diff:    inherit version;
   
     src = fetchurl {
  -    url = "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_${arch}.deb";
  -    inherit sha256;
  +    inherit url sha256;
     };
   
     meta = with stdenv.lib; {
  
positive.code:     homepage    = http://vagrantup.com;
      license     = licenses.mit;
      maintainers = with maintainers; [ lovek323 globin jgeerds kamilchm ];
      platforms   = platforms.linux;
    };
  
    buildInputs = [ makeWrapper ];
  
    unpackPhase = ''
      ${dpkg}/bin/dpkg-deb -x "$src" .
    '';
  
    buildPhase = "";
  
  
negative.code:     sha256 = "1rn03rqlf1iv6n87a78hkda2yqparhhaivfjpizblmxvlw2hk5r8";
    };
  
    url = if stdenv.isLinux
      then "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_${arch}.deb"
      else if stdenv.isDarwin
        then "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}.dmg"
        else "system ${stdenv.system} not supported";
  
    sha256 = {
      "x86_64-linux"  = "1nkhf160hcl02yvafj6hq53j204qqxyvxjngnmf4f5md8dmkpn76";
      "i686-linux"    = "0mr4pn7nggjdsqyxh1z2mflvvmpzhbxh5gax501d2hi8xr0y68df";
      "x86_64-darwin" = "1nd2adxwhs2vwmi5vw2z720ny4q9rpj8i4dlcdxzbyli7h8cs5mr";
    }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
  
    arch = builtins.replaceStrings ["-linux"] [""] stdenv.system;
  