<commit_before>{
  stdenv, extra-cmake-modules, fetchurl,

  kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio,
  knewstuff, kplotting, kwidgetsaddons, kxmlgui, wrapQtAppsHook,

  qtx11extras, qtwebsockets,

  eigen, zlib,

  cfitsio, indilib, xplanet, libnova, gsl
}:

stdenv.mkDerivation rec {
  pname = "kstars";
  version = "3.4.3";

  src = fetchurl {
    url = "https://mirrors.mit.edu/kde/stable/kstars/kstars-${version}.tar.xz";
    sha256 = "0j5yxg6ay6sic194skz6vjzg6yvrpb3gvypvs0frjrcjbsl1j4f8";
  };

  patches = [
    ./indi-fix.patch
  ];

  nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
  buildInputs = [
    kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio
    knewstuff kplotting kwidgetsaddons kxmlgui

    qtx11extras qtwebsockets

    eigen zlib

    cfitsio indilib xplanet libnova gsl
  ];

  cmakeFlags = [
    "-DINDI_NIX_ROOT=${indilib}"
  ];

  meta = with stdenv.lib; {
    description = "Virtual planetarium astronomy software";
    homepage = "https://kde.org/applications/education/org.kde.kstars";
    longDescription = ''
      It provides an accurate graphical simulation of the night sky, from any location on Earth, at any date and time.
      The display includes up to 100 million stars, 13.000 deep-sky objects, all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites.
      For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations.
    '';
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ timput ];
  };
}<commit_msg>kstars: use mkDerivation instead of wrapQtAppsHook<commit_after>{
  lib, mkDerivation, extra-cmake-modules, fetchurl,

  kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio,
  knewstuff, kplotting, kwidgetsaddons, kxmlgui,

  qtx11extras, qtwebsockets,

  eigen, zlib,

  cfitsio, indilib, xplanet, libnova, gsl
}:

mkDerivation rec {
  pname = "kstars";
  version = "3.4.3";

  src = fetchurl {
    url = "https://mirrors.mit.edu/kde/stable/kstars/kstars-${version}.tar.xz";
    sha256 = "0j5yxg6ay6sic194skz6vjzg6yvrpb3gvypvs0frjrcjbsl1j4f8";
  };

  patches = [
    ./indi-fix.patch
  ];

  nativeBuildInputs = [ extra-cmake-modules kdoctools ];
  buildInputs = [
    kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio
    knewstuff kplotting kwidgetsaddons kxmlgui

    qtx11extras qtwebsockets

    eigen zlib

    cfitsio indilib xplanet libnova gsl
  ];

  cmakeFlags = [
    "-DINDI_NIX_ROOT=${indilib}"
  ];

  meta = with lib; {
    description = "Virtual planetarium astronomy software";
    homepage = "https://kde.org/applications/education/org.kde.kstars";
    longDescription = ''
      It provides an accurate graphical simulation of the night sky, from any location on Earth, at any date and time.
      The display includes up to 100 million stars, 13.000 deep-sky objects, all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites.
      For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations.
    '';
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ timput ];
  };
}
{'fraction_non_alphanumeric': 0.08899630366789878, 'fraction_numerical': 0.021609326130224624, 'mean_word_length': 3.773405698778833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '672987', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1179, 'n_words': 326}