anchor.diff:    buildCommand = ''
       ensureDir $out/share/autostart
       target=${name}.desktop
  -    cp ${package}/share/applications/${name}.desktop $target
  +    cp ${package}/share/applications/${srcPrefix}${name}.desktop $target
       chmod +rw $target
       echo "X-KDE-autostart-phase=${phase}" >> $target
       ${lib.optionalString (after != null) ''echo "${after}" >> $target''}
  
positive.code: # as autostart item.
  
  {stdenv, lib}:
  { name     # name of the desktop file (without .desktop)
  , package  # package where the desktop file resides in
  , after ? null
  , condition ? null
  , phase ? "2"
  
negative.code:   # this will automatically put 'package' in the environment when you
    # put its startup item in there.
    propagatedBuildInputs = [ package ];
  }
  