anchor.diff: -{ fetchurl
  -, lib
  +{ lib
   , stdenv
  +, fetchurl
   , aqbanking
   , boost
   , cmake
  +, gettext
   , glib
   , glibcLocales
   , gtest
  
positive.code:     ./0003-remove-valgrind.patch
    ];
  
    preConfigure = ''
      export GUILE_AUTO_COMPILE=0 # this needs to be an env variable and not a cmake flag to suppress guile warning
    '';
  
    doCheck = true;
  
    /*
      GNUcash's `make check` target does not define its prerequisites but expects them to have already been built.
      The list of targets below was built through trial and error based on failing tests.
    */
    preCheck = ''
      make \
        test-account-object \
  
negative.code:     libofx
      libxml2
      libxslt
      pkg-config
      swig
      webkitgtk
    ]
    ++ (with perlPackages; [
      DateManip
      FinanceQuote
      perl
    ]);
  
    patches = [
      # this patch disables test-gnc-timezone and test-gnc-datetime which fail due to nix datetime challenges
  