anchor.diff:    python = python3;
     wxPython = python3Packages.wxPython_4_0;
   
  -  kicad-libraries = callPackages ./libraries.nix versionConfig.libVersion;
  -  kicad-base = callPackage ./base.nix {
  +  libraries = callPackages ./libraries.nix versionConfig.libVersion;
  +  base = callPackage ./base.nix {
       pname = baseName;
       inherit versions stable baseName;
       inherit wxGTK python wxPython;
  
positive.code: 
    # dunno why i have to add $makeWrapperArgs manually...
    # $out and $program_PYTHONPATH don't exist when makeWrapperArgs gets set?
    # not sure if anything has to be done with the other stuff in kicad-base/bin
    # dxf2idf, idf2vrml, idfcyl, idfrect, kicad2step, kicad-ogltest
    installPhase =
      optionalString (scriptingSupport) '' buildPythonPath "${kicad-base} $pythonPath"
      '' +
      '' makeWrapper ${kicad-base}/bin/kicad $out/bin/kicad $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      '' +
      '' makeWrapper ${kicad-base}/bin/pcbnew $out/bin/pcbnew $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      '' +
      '' makeWrapper ${kicad-base}/bin/eeschema $out/bin/eeschema $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      '' +
      '' makeWrapper ${kicad-base}/bin/gerbview $out/bin/gerbview $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      '' +
      '' makeWrapper ${kicad-base}/bin/pcb_calculator $out/bin/pcb_calculator $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      '' +
      '' makeWrapper ${kicad-base}/bin/pl_editor $out/bin/pl_editor $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      '' +
      '' makeWrapper ${kicad-base}/bin/bitmap2component $out/bin/bitmap2component $makeWrapperArgs ''
      + optionalString (scriptingSupport) '' --set PYTHONPATH "$program_PYTHONPATH"
      ''
    ;
  
negative.code:   inherit pname;
    version = versions.${baseName}.kicadVersion.version;
  
    src = base;
    dontUnpack = true;
    dontConfigure = true;
    dontBuild = true;
  