<commit_before>{ stdenv, fetchurl, SDL, frei0r, jack2, libav, libdv, libsamplerate
, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox
}:

stdenv.mkDerivation rec {
  name = "mlt-${version}";
  version = "0.9.2";

  src = fetchurl {
    url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz";
    sha256 = "0vk1i2yrny6dbip4aha25ibgv4m2rdhpxmz6a74q9wz1cgzbb766";
  };

  buildInputs = [
    SDL frei0r jack2 libav libdv libsamplerate libvorbis libxml2
    makeWrapper movit pkgconfig qt sox
  ];

  # Mostly taken from:
  # http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
  configureFlags = [
    "--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3"
    "--enable-opengl"
  ];

  enableParallelBuilding = true;

  postInstall = ''
    wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
  '';
<commit_msg>melt: use ffmpeg instead of libav, fixes libx264 export<commit_after>{ stdenv, fetchurl, SDL, ffmpeg, frei0r, jack2, libdv, libsamplerate
, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox
}:

stdenv.mkDerivation rec {
  name = "mlt-${version}";
  version = "0.9.2";

  src = fetchurl {
    url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz";
    sha256 = "0vk1i2yrny6dbip4aha25ibgv4m2rdhpxmz6a74q9wz1cgzbb766";
  };

  buildInputs = [
    SDL ffmpeg frei0r jack2 libdv libsamplerate libvorbis libxml2
    makeWrapper movit pkgconfig qt sox
  ];

  # Mostly taken from:
  # http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
  configureFlags = [
    "--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3"
    "--enable-opengl"
  ];

  enableParallelBuilding = true;

  postInstall = ''
    wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
  '';

{'fraction_non_alphanumeric': 0.14077163712200208, 'fraction_numerical': 0.0370177267987487, 'mean_word_length': 3.8337531486146097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '7577970', 'n_tokens_mistral': 802, 'n_tokens_neox': 772, 'n_words': 128}