anchor.diff:      libofx
       libxml2
       libxslt
  -    perl
       pkg-config
       swig
       webkitgtk
  -  ] ++ (with perlPackages; [ FinanceQuote DateManip ]);
  +  ]
  +  ++ (with perlPackages; [
  +    DateManip
  +    FinanceQuote
  +    perl
  +  ]);
   
     patches = [
       # this patch disables test-gnc-timezone and test-gnc-datetime which fail due to nix datetime challenges
  
positive.code: { fetchurl
  , lib
  , stdenv
  , aqbanking
  , boost
  , cmake
  , glib
  , glibcLocales
  , gtest
  
negative.code: 
    preFixup = ''
      gappsWrapperArgs+=(
        # db drivers location
        --set GNC_DBD_DIR ${libdbiDrivers}/lib/dbd
        # gnome settings schemas location on Nix
        --set GSETTINGS_SCHEMA_DIR ${glib.makeSchemaPath "$out" "${pname}-${version}"}
      )
    '';
  
    # wrapGAppsHook would wrap all binaries including the cli utils which need
    # Perl wrapping
    dontWrapGApps = true;
  
    # gnucash is wrapped using the args constructed for wrapGAppsHook.
  