<commit_before>{ stdenv, fetchgit, cmake, pkgconfig, libusb, fftwSinglePrec }:

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

  src = fetchgit {
    url = "git://github.com/mossmann/hackrf";
    rev = "refs/tags/v${version}";
    sha256 = "16hd61icvzaciv7s9jpgm9c8q6m4mwvj97gxrb20sc65p5gjb7hv";
  };

  buildInputs = [
    cmake pkgconfig libusb fftwSinglePrec
  ];

  preConfigure = ''
    cd host
  '';

  meta = with stdenv.lib; {
    description = "An open source SDR platform";
    homepage = http://greatscottgadgets.com/hackrf/;
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = with maintainers; [ sjmackenzie the-kenny ];
  };
}<commit_msg>hackrf: fix udev rule detection impurity<commit_after>{ stdenv, fetchgit, cmake, pkgconfig, libusb, fftwSinglePrec }:

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

  src = fetchgit {
    url = "git://github.com/mossmann/hackrf";
    rev = "refs/tags/v${version}";
    sha256 = "16hd61icvzaciv7s9jpgm9c8q6m4mwvj97gxrb20sc65p5gjb7hv";
  };

  buildInputs = [
    cmake pkgconfig libusb fftwSinglePrec
  ];

  cmakeFlags = [ "-DUDEV_RULES_GROUP=plugdev" "-DUDEV_RULES_PATH=lib/udev/rules.d" ];

  preConfigure = ''
    cd host
  '';

  meta = with stdenv.lib; {
    description = "An open source SDR platform";
    homepage = http://greatscottgadgets.com/hackrf/;
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = with maintainers; [ sjmackenzie the-kenny ];
  };
}
{'fraction_non_alphanumeric': 0.13376623376623376, 'fraction_numerical': 0.03766233766233766, 'mean_word_length': 3.5323529411764705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4614380', 'n_tokens_mistral': 654, 'n_tokens_neox': 606, 'n_words': 106}