anchor.diff:      sha256 = "1rsh1pbwvngsx5slmd6608b1zqs3jvq70bjr9zyziap9vxka3z1v";
     };
   
  +  NIX_LDFLAGS = "-lgcc_s";
  +
  +  postPatch = ''
  +    # within Nix chroot builds, localhost is unresolvable
  +    sed -i -e '/DEFTESTCASE(addr_resolv_localhost)/d' \
  +      auto_tests/network_test.c
  +    # takes WAAAY too long (~10 minutes) and would timeout
  +    sed -i -e '/DEFTESTCASE[^(]*(many_clients\>/d' \
  +      auto_tests/tox_test.c
  +  '';
  +
     preConfigure = ''
       autoreconf -i
     '';
  
positive.code: { stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses, libopus
  , libvpx, libconfig, pkgconfig }:
  
  let
    version = "e1158be5a6";
  
negative.code: 
    buildInputs = [
      autoconf libtool automake libsodium ncurses libopus
      libvpx check libconfig pkgconfig
    ];
  
    doCheck = true;
  