anchor.diff:      "--prefix XDG_DATA_DIRS : ${cups}/share"
       "--prefix GIO_EXTRA_MODULES : ${gnome3.dconf}/lib/gio/modules"
   
  -    "--set KISYSMOD ${kicad-libraries.footprints}/share/kicad/modules"
  -    "--set KICAD_SYMBOL_DIR ${kicad-libraries.symbols}/share/kicad/library"
  -    "--set KICAD_TEMPLATE_DIR ${kicad-libraries.templates}/share/kicad/template"
  -    "--prefix KICAD_TEMPLATE_DIR : ${kicad-libraries.symbols}/share/kicad/template"
  -    "--prefix KICAD_TEMPLATE_DIR : ${kicad-libraries.footprints}/share/kicad/template"
  +    "--set KISYSMOD ${libraries.footprints}/share/kicad/modules"
  +    "--set KICAD_SYMBOL_DIR ${libraries.symbols}/share/kicad/library"
  +    "--set KICAD_TEMPLATE_DIR ${libraries.templates}/share/kicad/template"
  +    "--prefix KICAD_TEMPLATE_DIR : ${libraries.symbols}/share/kicad/template"
  +    "--prefix KICAD_TEMPLATE_DIR : ${libraries.footprints}/share/kicad/template"
     ]
  -  ++ optionals (with3d) [ "--set KISYS3DMOD ${kicad-libraries.packages3d}/share/kicad/modules/packages3d" ]
  +  ++ optionals (with3d) [ "--set KISYS3DMOD ${libraries.packages3d}/share/kicad/modules/packages3d" ]
     ++ optionals (ngspiceSupport) [ "--prefix LD_LIBRARY_PATH : ${libngspice}/lib" ]
   
     # infinisil's workaround for #39493
  
positive.code:   python = python3;
    wxPython = python3Packages.wxPython_4_0;
  
    kicad-libraries = callPackages ./libraries.nix versionConfig.libVersion;
    kicad-base = callPackage ./base.nix {
      pname = baseName;
      inherit versions stable baseName;
      inherit wxGTK python wxPython;
  
negative.code:   nativeBuildInputs = optionals (scriptingSupport)
      [ pythonPackages.wrapPython ];
  
    # wrapGAppsHook added the equivalent to ${base}/share
    # though i noticed no difference without it
    makeWrapperArgs = [
      "--prefix XDG_DATA_DIRS : ${base}/share"
      "--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share"
      "--prefix XDG_DATA_DIRS : ${gnome3.defaultIconTheme}/share"
      "--prefix XDG_DATA_DIRS : ${wxGTK.gtk}/share/gsettings-schemas/${wxGTK.gtk.name}"
  