<commit_before>{ stdenv
, fetchurl

, glib
, gobject-introspection
, systemd_lib
}:

let
  inherit (stdenv.lib)
    enFlag;

  version = "230";
in

stdenv.mkDerivation rec {
  name = "libgudev-${version}";

  src = fetchurl {
    url = "https://download.gnome.org/sources/libgudev/${version}/${name}.tar.xz";
    sha256 = "063w6j35n0i0ssmv58kivc1mw4070z6fzb83hi4xfrhcxnn7zrx2";
  };

  buildInputs = [
    glib
    gobject-introspection
    systemd_lib
  ];

  configureFlags = [
    "--disable-gtk-doc"
    "--disable-gtk-doc-html"
    "--disable-gtk-doc-pdf"
    (enFlag "introspection" (gobject-introspection != null) null)
  ];

  meta = with stdenv.lib; {
    description = "GObject bindings for udev";
    homepage = https://wiki.gnome.org/Projects/libgudev;
    license = licenses.lgpl2Plus;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}<commit_msg>libgudev: fix download url & refactor<commit_after>{ stdenv
, fetchurl
, lib

, glib
, gobject-introspection
, systemd_lib
}:

let
  inherit (lib)
    boolEn;

  version = "230";
in
stdenv.mkDerivation rec {
  name = "libgudev-${version}";

  src = fetchurl {
    url = "mirror://gnome/sources/libgudev/${version}/${name}.tar.xz";
    sha256 = "a2e77faced0c66d7498403adefcc0707105e03db71a2b2abd620025b86347c18";
  };

  buildInputs = [
    glib
    gobject-introspection
    systemd_lib
  ];

  configureFlags = [
    "--disable-gtk-doc"
    "--disable-gtk-doc-html"
    "--disable-gtk-doc-pdf"
    "--${boolEn (gobject-introspection != null)}-introspection"
  ];

  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      sha256Url = "https://download.gnome.org/sources/libgudev/${version}/"
        + "${name}.sha256sum";
      failEarly = true;
    };
  };

  meta = with lib; {
    description = "GObject bindings for udev";
    homepage = https://wiki.gnome.org/Projects/libgudev;
    license = licenses.lgpl2Plus;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.13791491351098645, 'fraction_numerical': 0.04114071996259935, 'mean_word_length': 2.8214285714285716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2998699', 'n_tokens_mistral': 868, 'n_tokens_neox': 801, 'n_words': 128}