<commit_before>{ plasmaPackage, lib, copyPathsToStore
, extra-cmake-modules, kdoctools
, baloo, kactivities, kcmutils, kconfig, kcrash, kdbusaddons, kdeclarative
, kdelibs4support, kdesu, kglobalaccel, kidletime, kjsembed, knewstuff
, knotifyconfig, kpackage, krunner, ktexteditor, ktextwidgets, kwallet, kwayland
, kwin, kxmlrpcclient, libdbusmenu, libkscreen, libksysguard, libSM, libXcursor
, networkmanager-qt, pam, phonon, plasma-framework, qtquickcontrols
, qtscript, qtx11extras, solid, wayland
}:

plasmaPackage {
  name = "plasma-workspace";

  nativeBuildInputs = [
    extra-cmake-modules
    kdoctools
  ];
  propagatedBuildInputs = [
    baloo kactivities kcmutils kconfig kcrash kdbusaddons kdeclarative
    kdelibs4support kdesu kglobalaccel kidletime kjsembed knewstuff
    knotifyconfig kpackage krunner ktexteditor ktextwidgets kwallet kwayland
    kwin kxmlrpcclient libdbusmenu libkscreen libksysguard libSM libXcursor
    networkmanager-qt pam phonon plasma-framework qtquickcontrols
    qtscript qtx11extras solid wayland
  ];

  patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);

  postPatch = ''
    substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \
        --replace kdostartupconfig5 $out/bin/kdostartupconfig5
  '';

  postInstall = ''
    rm "$out/bin/startkde"
    rm "$out/bin/startplasmacompositor"
    rm "$out/lib/libexec/startplasma"
    rm -r "$out/share/wayland-sessions"
  '';

  preFixup = ''
    wrapQtProgram $out/bin/kcheckrunning
    wrapQtProgram $out/bin/kcminit
    wrapQtProgram $out/bin/kcminit_startup
    wrapQtProgram $out/bin/kdostartupconfig5
    wrapQtProgram $out/bin/klipper
    wrapQtProgram $out/bin/krunner
    wrapQtProgram $out/bin/ksmserver
    wrapQtProgram $out/bin/ksplashqml
    wrapQtProgram $out/bin/kstartupconfig5
    wrapQtProgram $out/bin/kuiserver5
    wrapQtProgram $out/bin/plasmashell
    wrapQtProgram $out/bin/plasmawindowed
    wrapQtProgram $out/bin/systemmonitor<commit_msg>kde5.plasma-workspace: add iso-codes dependency<commit_after>{ plasmaPackage, lib, copyPathsToStore
, extra-cmake-modules, kdoctools
, baloo, kactivities, kcmutils, kconfig, kcrash, kdbusaddons, kdeclarative
, kdelibs4support, kdesu, kglobalaccel, kidletime, kjsembed, knewstuff
, knotifyconfig, kpackage, krunner, ktexteditor, ktextwidgets, kwallet, kwayland
, kwin, kxmlrpcclient, libkscreen, libksysguard, networkmanager-qt, phonon
, plasma-framework, qtquickcontrols, qtscript, qtx11extras, solid
, isocodes, libdbusmenu, libSM, libXcursor, pam, wayland
}:

plasmaPackage {
  name = "plasma-workspace";

  nativeBuildInputs = [
    extra-cmake-modules
    kdoctools
  ];
  buildInputs = [
    baloo kactivities kcmutils kconfig kcrash kdbusaddons kdeclarative
    kdelibs4support kdesu kglobalaccel kidletime kjsembed knewstuff
    knotifyconfig kpackage krunner ktexteditor ktextwidgets kwallet kwayland
    kwin kxmlrpcclient libkscreen libksysguard networkmanager-qt phonon
    plasma-framework qtquickcontrols qtscript qtx11extras solid
    isocodes libdbusmenu libSM libXcursor pam wayland
  ];

  patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);

  postPatch = ''
    substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \
        --replace kdostartupconfig5 $out/bin/kdostartupconfig5
  '';

  postInstall = ''
    rm "$out/bin/startkde"
    rm "$out/bin/startplasmacompositor"
    rm "$out/lib/libexec/startplasma"
    rm -r "$out/share/wayland-sessions"
  '';

  preFixup = ''
    wrapQtProgram $out/bin/kcheckrunning
    wrapQtProgram $out/bin/kcminit
    wrapQtProgram $out/bin/kcminit_startup
    wrapQtProgram $out/bin/kdostartupconfig5
    wrapQtProgram $out/bin/klipper
    wrapQtProgram $out/bin/krunner
    wrapQtProgram $out/bin/ksmserver
    wrapQtProgram $out/bin/ksplashqml
    wrapQtProgram $out/bin/kstartupconfig5
    wrapQtProgram $out/bin/kuiserver5
    wrapQtProgram $out/bin/plasmashell
    wrapQtProgram $out/bin/plasmawindowed
    wrapQtProgram $out/bin/systemmonitor
{'fraction_non_alphanumeric': 0.08310456700773645, 'fraction_numerical': 0.005739955078612428, 'mean_word_length': 4.528275862068965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2889881', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1401, 'n_words': 268}