anchor.diff:      runHook preInstall
   
       make install
  -    ln -s $out/lib/addons/${n}/${n}.so.${version} $out${addonDir}/${n}/${n}.so.${version}
  +
  +    [[ -f $out/lib/addons/${n}/${n}.so ]] && ln -s $out/lib/addons/${n}/${n}.so $out${addonDir}/${n}/${n}.so || true
  +    [[ -f $out/lib/addons/${n}/${n}.so.${version} ]] && ln -s $out/lib/addons/${n}/${n}.so.${version} $out${addonDir}/${n}/${n}.so.${version} || true
  +
       ${extraInstallPhase}
   
       runHook postInstall
  
positive.code: , extraNativeBuildInputs ? []
  , extraBuildInputs ? []
  , extraRuntimeDependencies ? []
  , extraInstallPhase ? "", ... } @ attrs:
  toKodiAddon (stdenv.mkDerivation ({
    name = "kodi-" + name;
  
negative.code:   # disables check ensuring install prefix is that of kodi
    cmakeFlags = [
      "-DOVERRIDE_PATHS=1"
    ] ++ extraCMakeFlags;
  
    # kodi checks for addon .so libs existance in the addon folder (share/...)
    # and the non-wrapped kodi lib/... folder before even trying to dlopen
  