<commit_before>{ lib, stdenv, makeWrapper, fetchurl, which, pkg-config
, libjpeg
, ocamlPackages
, awscli2, curl, ffmpeg, youtube-dl
, runtimePackages ? [ awscli2 curl ffmpeg youtube-dl ]
}:

let
  pname = "liquidsoap";
  version = "2.0.6";
in
stdenv.mkDerivation {
  inherit pname version;

  src = fetchurl {
    url = "https://github.com/savonet/${pname}/releases/download/v${version}/${pname}-${version}.tar.bz2";
    sha256 = "sha256-1wD9BApbDA/ovzZoniay+jciP/V2C8EoGQehd5N8PPQ=";
  };

  postFixup = ''
    wrapProgram $out/bin/liquidsoap \
      --set LIQ_LADSPA_PATH /run/current-system/sw/lib/ladspa \
      --prefix PATH : ${lib.makeBinPath runtimePackages}
  '';

  nativeBuildInputs = [ makeWrapper pkg-config ];
  buildInputs = [
      libjpeg
      which
      ocamlPackages.ocaml ocamlPackages.findlib

      # Mandatory dependencies
      ocamlPackages.dtools
      ocamlPackages.duppy
      ocamlPackages.mm
      ocamlPackages.ocaml_pcre
      ocamlPackages.menhir ocamlPackages.menhirLib
      ocamlPackages.sedlex

      # Recommended dependencies
      ocamlPackages.camomile
      ocamlPackages.samplerate

      # Optional dependencies
      ocamlPackages.camlimages
      ocamlPackages.gd4o
      ocamlPackages.alsa
      ocamlPackages.ao
      ocamlPackages.bjack
      ocamlPackages.cry
      ocamlPackages.dssi
      ocamlPackages.faad
      ocamlPackages.fdkaac
      ocamlPackages.srt
      ocamlPackages.ffmpeg
      ocamlPackages.flac
      ocamlPackages.frei0r
      ocamlPackages.gstreamer
      ocamlPackages.inotify
      ocamlPackages.ladspa
      ocamlPackages.lame
      ocamlPackages.lastfm
      ocamlPackages.lo
      ocamlPackages.mad
      ocamlPackages.magic
      ocamlPackages.ogg
      ocamlPackages.opus
      ocamlPackages.portaudio
      ocamlPackages.pulseaudio
      ocamlPackages.shine
      ocamlPackages.soundtouch
      ocamlPackages.speex
      ocamlPackages.srt
      ocamlPackages.ssl
      ocamlPackages.taglib
      ocamlPackages.theora
      ocamlPackages.vorbis
      ocamlPackages.xmlplaylist
      ocamlPackages.posix-time2
      ocamlPackages.tsdl
      ocamlPackages.tsdl-image
      ocamlPackages.tsdl-ttf

      # Undocumented dependencies
      ocamlPackages.ocurl
      ocamlPackages.lilv
      ocamlPackages.graphics
      ocamlPackages.yojson
      ocamlPackages.cohttp-lwt-unix
    ];

  meta = with lib; {
    description = "Swiss-army knife for multimedia streaming";
    homepage = "https://www.liquidsoap.info/";
    maintainers = with maintainers; [ dan<NAME> ];
    license = licenses.gpl2Plus;
    platforms = ocamlPackages.ocaml.meta.platforms or [];
  };
}<commit_msg>liquidsoap: 2.0.6 -> 2.1.2<commit_after>{ lib, stdenv, makeWrapper, fetchurl, which, pkg-config
, libjpeg
, ocamlPackages
, awscli2, curl, ffmpeg, youtube-dl
, runtimePackages ? [ awscli2 curl ffmpeg youtube-dl ]
}:

let
  pname = "liquidsoap";
  version = "2.1.2";
in
stdenv.mkDerivation {
  inherit pname version;

  src = fetchurl {
    url = "https://github.com/savonet/${pname}/releases/download/v${version}/${pname}-${version}.tar.bz2";
    sha256 = "sha256-e7iCBY9xKQZrkQ+IlahE1KEbDW89tTIlpGvHZubh3bM=";
  };

  postFixup = ''
    wrapProgram $out/bin/liquidsoap \
      --set LIQ_LADSPA_PATH /run/current-system/sw/lib/ladspa \
      --prefix PATH : ${lib.makeBinPath runtimePackages}
  '';

  nativeBuildInputs = [ makeWrapper pkg-config ];
  buildInputs = [
      libjpeg
      which
      ocamlPackages.ocaml ocamlPackages.findlib

      # Mandatory dependencies
      ocamlPackages.dtools
      ocamlPackages.duppy
      ocamlPackages.mm
      ocamlPackages.ocaml_pcre
      ocamlPackages.menhir ocamlPackages.menhirLib
      ocamlPackages.camomile
      ocamlPackages.ocurl
      ocamlPackages.uri
      ocamlPackages.sedlex

      # Recommended dependencies
      ocamlPackages.ffmpeg

      # Optional dependencies
      ocamlPackages.camlimages
      ocamlPackages.gd4o
      ocamlPackages.alsa
      ocamlPackages.ao
      ocamlPackages.bjack
      ocamlPackages.cry
      ocamlPackages.dssi
      ocamlPackages.faad
      ocamlPackages.fdkaac
      ocamlPackages.flac
      ocamlPackages.frei0r
      ocamlPackages.gstreamer
      ocamlPackages.inotify
      ocamlPackages.ladspa
      ocamlPackages.lame
      ocamlPackages.lastfm
      ocamlPackages.lilv
      ocamlPackages.lo
      ocamlPackages.mad
      ocamlPackages.magic
      ocamlPackages.ogg
      ocamlPackages.opus
      ocamlPackages.portaudio
      ocamlPackages.pulseaudio
      ocamlPackages.shine
      ocamlPackages.samplerate
      ocamlPackages.soundtouch
      ocamlPackages.speex
      ocamlPackages.srt
      ocamlPackages.ssl
      ocamlPackages.taglib
      ocamlPackages.theora
      ocamlPackages.vorbis
      ocamlPackages.xmlplaylist
      ocamlPackages.posix-time2
      ocamlPackages.tsdl
      ocamlPackages.tsdl-image
      ocamlPackages.tsdl-ttf

      # Undocumented dependencies
      ocamlPackages.graphics
      ocamlPackages.cohttp-lwt-unix
    ];

  meta = with lib; {
    description = "Swiss-army knife for multimedia streaming";
    homepage = "https://www.liquidsoap.info/";
    maintainers = with maintainers; [ dandellion ehmry ];
    license = licenses.gpl2Plus;
    platforms = ocamlPackages.ocaml.meta.platforms or [];
  };
}
{'fraction_non_alphanumeric': 0.08158640226628895, 'fraction_numerical': 0.009442870632672332, 'mean_word_length': 2.7401129943502824, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '1541564', 'n_tokens_mistral': 2030, 'n_tokens_neox': 1849, 'n_words': 266}