<commit_before>{stdenv, fetchurl, gperf, pkgconfig, glib, acl, 
  libusb, usbutils, pciutils, ...}:

assert stdenv ? glibc;

stdenv.mkDerivation rec {
  name = "udev-153";

  src = fetchurl {
    url = "mirror://kernel/linux/utils/kernel/hotplug/${name}.tar.bz2";
    sha256 = "0i3ns4qhfbnci284k8zri0rfxw88ccajdynb5djh6k182a6nn3la";
  };

  buildInputs = [gperf pkgconfig glib acl libusb usbutils];

  configureFlags = "--with-pci-ids-path=${pciutils}/share/pci.ids
    --disable-introspection
    --with-firmware-path=/etc/firmware:/root/test-firmware";

  postInstall =
    ''
      # Install some rules that really should be installed by default.
      cp rules/packages/40-pilot-links.rules $out/libexec/rules.d/

      # The path to rule_generator.functions in write_cd_rules and
      # write_net_rules is broken.  Also, don't store the mutable
      # persistant rules in /etc/udev/rules.d but in
      # /var/lib/udev/rules.d.
      for i in $out/libexec/write_cd_rules $out/libexec/write_net_rules; do
        substituteInPlace $i \
          --replace /lib/udev $out/libexec \
          --replace /etc/udev/rules.d /var/lib/udev/rules.d
      done

      # Don't set PATH to /bin:/sbin; won't work in NixOS.
      sed -e '/PATH=/d' -i $out/libexec/rule_generator.functions

      ln -s $out/lib/ConsoleKit $out/etc/ConsoleKit
    '';
  
  meta = {
    homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html;
    description = "Udev manages the /dev filesystem";
  };
}
<commit_msg>Changed udev firmware path to /root/test-firmware:/var/run/current-system/firmware<commit_after>{stdenv, fetchurl, gperf, pkgconfig, glib, acl, 
  libusb, usbutils, pciutils, ...}:

assert stdenv ? glibc;

stdenv.mkDerivation rec {
  name = "udev-153";

  src = fetchurl {
    url = "mirror://kernel/linux/utils/kernel/hotplug/${name}.tar.bz2";
    sha256 = "0i3ns4qhfbnci284k8zri0rfxw88ccajdynb5djh6k182a6nn3la";
  };

  buildInputs = [gperf pkgconfig glib acl libusb usbutils];

  configureFlags = "--with-pci-ids-path=${pciutils}/share/pci.ids
    --disable-introspection
    --with-firmware-path=/root/test-firmware:/var/run/current-system/firmware";

  postInstall =
    ''
      # Install some rules that really should be installed by default.
      cp rules/packages/40-pilot-links.rules $out/libexec/rules.d/

      # The path to rule_generator.functions in write_cd_rules and
      # write_net_rules is broken.  Also, don't store the mutable
      # persistant rules in /etc/udev/rules.d but in
      # /var/lib/udev/rules.d.
      for i in $out/libexec/write_cd_rules $out/libexec/write_net_rules; do
        substituteInPlace $i \
          --replace /lib/udev $out/libexec \
          --replace /etc/udev/rules.d /var/lib/udev/rules.d
      done

      # Don't set PATH to /bin:/sbin; won't work in NixOS.
      sed -e '/PATH=/d' -i $out/libexec/rule_generator.functions

      ln -s $out/lib/ConsoleKit $out/etc/ConsoleKit
    '';
  
  meta = {
    homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html;
    description = "Udev manages the /dev filesystem";
  };
}

{'fraction_non_alphanumeric': 0.13191763191763192, 'fraction_numerical': 0.01673101673101673, 'mean_word_length': 2.786845310596833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '1996794', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1121, 'n_words': 227}