<commit_before>{ stdenv, fetchurl, libftdi, libusb1 }:

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

  src = fetchurl {
    url = "mirror://sourceforge/openocd/openocd-${version}.tar.bz2";
    sha256 = "0qwfyd821sy5p0agz0ybgn5nd7vplipw4mhm485ldj1hcmw7n8sj";
  };

  configureFlags = [ "--enable-ft2232_libftdi"
                     "--enable-jlink"
                     "--enable-rlink"
                     "--enable-ulink"
                     "--enable-stlink" ];

  buildInputs = [ libftdi libusb1 ];

  postInstall = ''
    mkdir -p "$out/etc/udev/rules.d"
    ln -s "$out/share/openocd/contrib/openocd.udev" "$out/etc/udev/rules.d/99-openocd.rules"
  '';

  meta = {
    homepage = http://openocd.sourceforge.net/;
    description = "OpenOCD, an on-chip debugger";

    longDescription =
      '' OpenOCD provides on-chip programming and debugging support with a
         layered architecture of JTAG interface and TAP support, debug target
         support (e.g. ARM, MIPS), and flash chip drivers (e.g. CFI, NAND,
         etc.).  Several network interfaces are available for interactiving
         with OpenOCD: HTTP, telnet, TCL, and GDB.  The GDB server enables
         OpenOCD to function as a "remote target" for source-level debugging
         of embedded systems using the GNU GDB program.
      '';

    license = "GPLv2+";
    maintainers = with stdenv.lib.maintainers; [ <NAME> ];
    platforms = with stdenv.lib.platforms; linux;
  };
}<commit_msg>openocd: update 0.7.0 -> 0.8.0<commit_after>{ stdenv, fetchurl, libftdi, libusb1, pkgconfig }:

# TODO: Add "hidapi" as dependency to gain access to CMSIS-DAP debuggers.
# Support should be auto-detected, but if not, pass "--enable-cmsis-dap" to
# configure.

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

  src = fetchurl {
    url = "mirror://sourceforge/openocd/openocd-${version}.tar.bz2";
    sha256 = "0byk7hnccgmhw0f84qlkfhps38gp2xp628bfrsc03vq08hr6q1sv";
  };

  buildInputs = [ libftdi libusb1 pkgconfig ];

  configureFlags = [
    "--enable-jtag_vpi"
    "--enable-usb_blaster_libftdi"
    "--enable-amtjtagaccel"
    "--enable-gw16012"
    "--enable-presto_libftdi"
    "--enable-openjtag_ftdi"
    "--enable-oocd_trace"
    "--enable-buspirate"
    "--enable-sysfsgpio"
    "--enable-remote-bitbang"
  ];

  postInstall = ''
    mkdir -p "$out/etc/udev/rules.d"
    ln -s "$out/share/openocd/contrib/99-openocd.udev" "$out/etc/udev/rules.d/99-openocd.rules"
  '';

  meta = {
    homepage = http://openocd.sourceforge.net/;
    description = "OpenOCD, an on-chip debugger";

    longDescription =
      '' OpenOCD provides on-chip programming and debugging support with a
         layered architecture of JTAG interface and TAP support, debug target
         support (e.g. ARM, MIPS), and flash chip drivers (e.g. CFI, NAND,
         etc.).  Several network interfaces are available for interactiving
         with OpenOCD: HTTP, telnet, TCL, and GDB.  The GDB server enables
         OpenOCD to function as a "remote target" for source-level debugging
         of embedded systems using the GNU GDB program.
      '';

    license = "GPLv2+";
    maintainers = with stdenv.lib.maintainers; [ <NAME> ];
    platforms = with stdenv.lib.platforms; linux;
  };
}
{'fraction_non_alphanumeric': 0.12670093740550348, 'fraction_numerical': 0.022376776534623527, 'mean_word_length': 2.6919642857142856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2133015', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1144, 'n_words': 272}