<commit_before>{ stdenv
, fetchurl
, lib
, perl

, alsa-lib
, libjpeg-turbo
, libx11
, qt5

, channel ? null
}:

# TODO: qt5 support

let
  inherit (lib)
    any
    optionals
    optionalString;
in

assert any (n: n == channel) [
  "lib"
  "utils"
];

# See libv4l in all-packages.nix for the libs only (overrides alsa, libX11 & QT)

stdenv.mkDerivation rec {
  name = "v4l-utils-1.14.1";

  src = fetchurl {
    url = "https://linuxtv.org/downloads/v4l-utils/${name}.tar.bz2";
    multihash = "QmRA8oRsPtsdrHKqWiG2BAT3SudYQhBUXtduyTX3MhUMFz";
    sha256 = "7974e5626447407d8a1ed531da0461c0fe00e599a696cb548a240d17d3519005";
  };

  nativeBuildInputs = [
    perl
  ];

  buildInputs = optionals (channel == "utils") [
    alsa-lib
    libx11
    qt5<commit_msg>v4l-utils: 1.14.1 -> 1.14.2<commit_after>{ stdenv
, fetchurl
, lib
, perl

, alsa-lib
, libjpeg-turbo
, libx11
, qt5

, channel ? null
}:

# TODO: qt5 support

let
  inherit (lib)
    any
    optionals
    optionalString;
in

assert any (n: n == channel) [
  "lib"
  "utils"
];

# See libv4l in all-packages.nix for the libs only (overrides alsa, libX11 & QT)

stdenv.mkDerivation rec {
  name = "v4l-utils-1.14.2";

  src = fetchurl {
    url = "https://linuxtv.org/downloads/v4l-utils/${name}.tar.bz2";
    multihash = "QmVQ8RiKqGPCmeP2SNm4KXvD3oSAx3zUSNU6MdLHGFi8Fv";
    sha256 = "e6b962c4b1253cf852c31da13fd6b5bb7cbe5aa9e182881aec55123bae680692";
  };

  nativeBuildInputs = [
    perl
  ];

  buildInputs = optionals (channel == "utils") [
    alsa-lib
    libx11
    qt5
{'fraction_non_alphanumeric': 0.12597402597402596, 'fraction_numerical': 0.09415584415584416, 'mean_word_length': 3.2335164835164836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3503267', 'n_tokens_mistral': 779, 'n_tokens_neox': 699, 'n_words': 123}