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

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

100 lines
2.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, makeWrapper, fetchurl, which, pkg-config
2021-12-09 19:07:23 +01:00
, libjpeg
2017-09-22 09:20:08 +02:00
, ocamlPackages
2021-12-09 19:07:23 +01:00
, awscli2, curl, ffmpeg, youtube-dl
, runtimePackages ? [ awscli2 curl ffmpeg youtube-dl ]
2018-10-04 02:26:00 +02:00
}:
2014-08-24 17:29:49 +02:00
let
2018-10-04 02:26:00 +02:00
pname = "liquidsoap";
2022-06-21 21:42:53 +02:00
version = "2.0.6";
2014-08-24 17:29:49 +02:00
in
stdenv.mkDerivation {
2021-12-09 19:07:23 +01:00
inherit pname version;
2014-08-24 17:29:49 +02:00
src = fetchurl {
2021-12-09 19:07:23 +01:00
url = "https://github.com/savonet/${pname}/releases/download/v${version}/${pname}-${version}.tar.bz2";
2022-06-21 21:42:53 +02:00
sha256 = "sha256-1wD9BApbDA/ovzZoniay+jciP/V2C8EoGQehd5N8PPQ=";
2014-08-24 17:29:49 +02:00
};
postFixup = ''
2021-12-09 19:07:23 +01:00
wrapProgram $out/bin/liquidsoap \
--set LIQ_LADSPA_PATH /run/current-system/sw/lib/ladspa \
--prefix PATH : ${lib.makeBinPath runtimePackages}
'';
nativeBuildInputs = [ makeWrapper pkg-config ];
2021-12-09 19:07:23 +01:00
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
2014-08-24 17:29:49 +02:00
ocamlPackages.camomile
2021-12-09 19:07:23 +01:00
ocamlPackages.samplerate
# Optional dependencies
ocamlPackages.camlimages
ocamlPackages.gd4o
ocamlPackages.alsa
ocamlPackages.ao
ocamlPackages.bjack
ocamlPackages.cry
ocamlPackages.dssi
ocamlPackages.faad
2020-09-06 18:52:52 +02:00
ocamlPackages.fdkaac
2021-12-09 19:07:23 +01:00
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
2014-08-24 17:29:49 +02:00
];
meta = with lib; {
2014-08-24 17:29:49 +02:00
description = "Swiss-army knife for multimedia streaming";
homepage = "https://www.liquidsoap.info/";
2021-12-09 19:07:23 +01:00
maintainers = with maintainers; [ dandellion ehmry ];
license = licenses.gpl2Plus;
2017-09-22 09:20:08 +02:00
platforms = ocamlPackages.ocaml.meta.platforms or [];
2014-08-24 17:29:49 +02:00
};
}