<commit_before>{ stdenv
, boost
, cmake
, fetchFromGitHub
, pkgconfig
, txt2tags
}:

stdenv.mkDerivation rec {
  name = "thunderbolt-${version}";
  version = "0.9.2";
  src = fetchFromGitHub {
    owner = "01org";
    repo = "thunderbolt-software-user-space";
    rev = "1ae06410180320a5d0e7408a8d1a6ae2aa443c23";
    sha256 = "03yk419gj0767lpk6zvla4jx3nx56zsg4x4adl4nd50xhn409rcc";
  };

  buildInputs = [
    boost
    cmake
    pkgconfig
    txt2tags
  ];

  cmakeFlags = [
    "-DCMAKE_BUILD_TYPE='Release'"
    "-DUDEV_BIN_DIR=$out/bin"
    "-DUDEV_RULES_DIR=$out/udev"
  ];

  meta = {
    description = "Thunderbolt(TM) user-space components";
    license = stdenv.lib.licenses.bsd3;
    maintainers = [ stdenv.lib.maintainers.ryantrinkle ];
    homepage = https://01.org/thunderbolt-sw;
    platforms = stdenv.lib.platforms.linux;
  };
}<commit_msg>thunderbolt: 0.9.2 -> 0.9.3 (#42743)<commit_after>{ stdenv
, boost
, cmake
, fetchFromGitHub
, pkgconfig
, txt2tags
, udev
}:

stdenv.mkDerivation rec {
  name = "thunderbolt-${version}";
  version = "0.9.3";
  src = fetchFromGitHub {
    owner = "01org";
    repo = "thunderbolt-software-user-space";
    rev = "v${version}";
    sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
  };

  buildInputs = [
    boost
    cmake
    pkgconfig
    txt2tags
  ];

  # These can't go in the normal nix cmakeFlags because $out needs to be
  # expanded by the shell, not by cmake or nix.  $ENV{out} doesn't work right
  # either; it results in /build/source/build//nix/store/blahblahblahblah/bin/
  # TODO: use ${placeholder "out"} when possible.
  #       See https://github.com/NixOS/nixpkgs/pull/37693
  preConfigure = ''
    cmakeFlags+=" -DUDEV_BIN_DIR=$out/bin"
    cmakeFlags+=" -DUDEV_RULES_DIR=$out/etc/udev/rules.d"
  '';

  meta = {
    description = "Thunderbolt(TM) user-space components";
    license = stdenv.lib.licenses.bsd3;
    maintainers = [ stdenv.lib.maintainers.ryantrinkle ];
    homepage = https://01.org/thunderbolt-sw;
    platforms = stdenv.lib.platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.13640776699029125, 'fraction_numerical': 0.05048543689320388, 'mean_word_length': 3.348101265822785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 3, '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': '1361596', 'n_tokens_mistral': 896, 'n_tokens_neox': 821, 'n_words': 134}