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