nixpkgs/pkgs/tools/audio/liquidsoap/full.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

104 lines
2.5 KiB
Nix
Raw Normal View History

{ lib, stdenv, makeWrapper, fetchurl, which, pkg-config
2021-12-09 18:07:23 +00:00
, libjpeg
2017-09-22 07:20:08 +00:00
, ocamlPackages
2021-12-09 18:07:23 +00:00
, awscli2, curl, ffmpeg, youtube-dl
, runtimePackages ? [ awscli2 curl ffmpeg youtube-dl ]
2018-10-04 00:26:00 +00:00
}:
2014-08-24 15:29:49 +00:00
let
2018-10-04 00:26:00 +00:00
pname = "liquidsoap";
version = "2.1.4";
2014-08-24 15:29:49 +00:00
in
stdenv.mkDerivation {
2021-12-09 18:07:23 +00:00
inherit pname version;
2014-08-24 15:29:49 +00:00
src = fetchurl {
2021-12-09 18:07:23 +00:00
url = "https://github.com/savonet/${pname}/releases/download/v${version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-GQuG7f9U+/HqPcuj6hnBoH5mWEhxSwWgBnkCuLqHTAc=";
2014-08-24 15:29:49 +00:00
};
postFixup = ''
2021-12-09 18:07:23 +00:00
wrapProgram $out/bin/liquidsoap \
--set LIQ_LADSPA_PATH /run/current-system/sw/lib/ladspa \
--prefix PATH : ${lib.makeBinPath runtimePackages}
'';
strictDeps = true;
nativeBuildInputs =
[ makeWrapper pkg-config which
ocamlPackages.ocaml ocamlPackages.findlib ocamlPackages.menhir
];
2021-12-09 18:07:23 +00:00
buildInputs = [
libjpeg
2021-12-09 18:07:23 +00:00
# Mandatory dependencies
ocamlPackages.dtools
ocamlPackages.duppy
ocamlPackages.mm
ocamlPackages.ocaml_pcre
ocamlPackages.menhir ocamlPackages.menhirLib
ocamlPackages.camomile
ocamlPackages.ocurl
ocamlPackages.uri
ocamlPackages.sedlex
2021-12-09 18:07:23 +00:00
# Recommended dependencies
ocamlPackages.ffmpeg
2021-12-09 18:07:23 +00:00
# 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
2021-12-09 18:07:23 +00:00
# Undocumented dependencies
ocamlPackages.graphics
ocamlPackages.cohttp-lwt-unix
];
2014-08-24 15:29:49 +00:00
meta = with lib; {
2014-08-24 15:29:49 +00:00
description = "Swiss-army knife for multimedia streaming";
homepage = "https://www.liquidsoap.info/";
2021-12-09 18:07:23 +00:00
maintainers = with maintainers; [ dandellion ehmry ];
license = licenses.gpl2Plus;
2017-09-22 07:20:08 +00:00
platforms = ocamlPackages.ocaml.meta.platforms or [];
2014-08-24 15:29:49 +00:00
};
}