anchor.diff: -{ lib, stdenv
  +{ lib
  +, stdenv
   , autoconf
   , automake
   , c-ares
  
positive.code:   ];
  
    postPatch = ''
      for file in $(find src/ -type f \( -iname configure -o -iname \*.sh  \) ); do
        substituteInPlace "$file" --replace "/bin/bash" "${stdenv.shell}"
      done
    '';
  
negative.code: , unzip
  , wget
  }:
  mkDerivation rec {
    pname = "megasync";
    version = "4.4.0.0";
  
    src = fetchFromGitHub {
      owner = "meganz";
      repo = "MEGAsync";
      rev = "v${version}_Linux";
      sha256 = "1xggca7283943070mmpsfhh7c9avy809h0kgmf7497f4ca5zkg2y";
      fetchSubmodules = true;
    };
  
    nativeBuildInputs = [
      autoconf
      automake
      doxygen
      libtool
      lsb-release
      pkg-config
      qttools
      swig
      unzip
    ];
    buildInputs = [
      c-ares
      cryptopp
  