anchor.diff:    "Only kicad-unstable(-small) supports address/thread sanitation";
   assert lib.assertMsg (!(sanitizeAddress && sanitizeThreads))
     "'sanitizeAddress' and 'sanitizeThreads' are mutually exclusive, use one.";
  +
   let
     inherit (lib) optional optionals;
   in
  
positive.code:     openssl
      boost
    ]
    ++ optionals (withScripting) [ swig python wxPython ]
    ++ optional (withNgspice) libngspice
    ++ optional (withOCE) opencascade
    ++ optional (withOCC) opencascade-occt
  
negative.code: 
    makeFlags = optionals (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ];
  
    cmakeFlags = optionals (stable && withScripting) [
      "-DKICAD_SCRIPTING=ON"
      "-DKICAD_SCRIPTING_MODULES=ON"
      "-DKICAD_SCRIPTING_PYTHON3=ON"
      "-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON"
    ]
    ++ optionals (!withScripting) [
      "-DKICAD_SCRIPTING=OFF"
      "-DKICAD_SCRIPTING_WXPYTHON=OFF"
    ]
    ++ optional (withNgspice) "-DKICAD_SPICE=ON"
    ++ optional (!withOCE) "-DKICAD_USE_OCE=OFF"
    ++ optional (!withOCC) "-DKICAD_USE_OCC=OFF"
  