<commit_before>{ stdenv, fetchurl, pkgconfig, libzip, glib, libusb1, libftdi, check
, libserialport, librevisa, doxygen, glibmm, python
, version ? "0.4.0", sha256 ? "17k63p3yhpx9qbfprgayphqqhn2hdrcph73g6fqxmrinxqziyaaz"
}:

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

  src = fetchurl {
    url = "http://sigrok.org/download/source/libsigrok/${name}.tar.gz";
    inherit sha256;
  };

  firmware = fetchurl {
    url = "http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-bin-0.1.3.tar.gz";
    sha256 = "1qr02ny97navqxr56xq1a227yzf6h09m8jlvc9bnjl0bsk6887bl";
  };

  buildInputs = [ pkgconfig libzip glib libusb1 libftdi check libserialport
    librevisa doxygen glibmm python<commit_msg>libsigrok: 0.4.0 -> 0.5.0<commit_after>{ stdenv, fetchurl, pkgconfig, libzip, glib, libusb1, libftdi1, check
, libserialport, librevisa, doxygen, glibmm, python
, version ? "0.5.0", sha256 ? "197kr5ip98lxn7rv10zs35d1w0j7265s0xvckx0mq2l8kdvqd32c"
}:

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

  src = fetchurl {
    url = "http://sigrok.org/download/source/libsigrok/${name}.tar.gz";
    inherit sha256;
  };

  firmware = fetchurl {
    url = "http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-bin-0.1.3.tar.gz";
    sha256 = "1qr02ny97navqxr56xq1a227yzf6h09m8jlvc9bnjl0bsk6887bl";
  };

  buildInputs = [ pkgconfig libzip glib libusb1 libftdi1 check libserialport
    librevisa doxygen glibmm python
{'fraction_non_alphanumeric': 0.12664041994750655, 'fraction_numerical': 0.07939632545931759, 'mean_word_length': 4.545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '664854', 'n_tokens_mistral': 704, 'n_tokens_neox': 659, 'n_words': 97}