anchor.diff:      patchShebangs tools/patcheck
       patchShebangs tools/regression-test.pl
       patchShebangs tools/xavs-format
  -  '';
  +    '' + stdenv.lib.optionalString stdenv.isDarwin ''
  +    substituteInPlace config.guess --replace 'uname -p' 'uname -m'
  +    substituteInPlace configure \
  +      --replace '-O4' '-O3' \
  +      --replace ' -s ' ' ' \
  +      --replace 'LDFLAGS -s' 'LDFLAGS' \
  +      --replace '-dynamiclib' ' ' \
  +      --replace '-falign-loops=16' ' '
  +    substituteInPlace Makefile --replace '-Wl,-soname,' ' '
  +    '';
   
     configureFlags = [
       "--enable-pic"
  
positive.code:     sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
    };
  
    patchPhase = ''
      patchShebangs configure
      patchShebangs config.sub
  
negative.code:     description = "AVS encoder and decoder";
      homepage    = http://xavs.sourceforge.net/;
      license     = licenses.lgpl2;
      platforms   = platforms.linux ++ platforms.darwin;
      maintainers = with maintainers; [ codyopel ];
    };
  }
  