mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
163 lines
3.3 KiB
Nix
163 lines
3.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
makeWrapper,
|
|
fetchFromGitHub,
|
|
which,
|
|
pkg-config,
|
|
libjpeg,
|
|
ocamlPackages,
|
|
awscli2,
|
|
bubblewrap,
|
|
curl,
|
|
ffmpeg,
|
|
yt-dlp,
|
|
runtimePackages ? [
|
|
awscli2
|
|
bubblewrap
|
|
curl
|
|
ffmpeg
|
|
yt-dlp
|
|
],
|
|
}:
|
|
|
|
let
|
|
pname = "liquidsoap";
|
|
version = "2.2.5";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "savonet";
|
|
repo = "liquidsoap";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-o3P7oTizO2l2WkB4LormZ/Ses5jZOpgQ1r1zB1Y3Bjs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/lang/dune \
|
|
--replace-warn "(run git rev-parse --short HEAD)" "(run echo -n nixpkgs)"
|
|
'';
|
|
|
|
dontConfigure = true;
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
dune build
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
dune install --prefix "$out"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
fixupPhase = ''
|
|
runHook preFixup
|
|
|
|
wrapProgram $out/bin/liquidsoap \
|
|
--set LIQ_LADSPA_PATH /run/current-system/sw/lib/ladspa \
|
|
--prefix PATH : ${lib.makeBinPath runtimePackages}
|
|
|
|
runHook postFixup
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
pkg-config
|
|
which
|
|
ocamlPackages.ocaml
|
|
ocamlPackages.dune_3
|
|
ocamlPackages.findlib
|
|
ocamlPackages.menhir
|
|
];
|
|
|
|
buildInputs = [
|
|
libjpeg
|
|
|
|
# Mandatory dependencies
|
|
ocamlPackages.dtools
|
|
ocamlPackages.duppy
|
|
ocamlPackages.mm
|
|
ocamlPackages.ocurl
|
|
ocamlPackages.ocaml_pcre
|
|
ocamlPackages.cry
|
|
ocamlPackages.camomile
|
|
ocamlPackages.uri
|
|
ocamlPackages.fileutils
|
|
ocamlPackages.magic-mime
|
|
ocamlPackages.menhir # liquidsoap-lang
|
|
ocamlPackages.menhirLib
|
|
ocamlPackages.metadata
|
|
ocamlPackages.dune-build-info
|
|
ocamlPackages.re
|
|
ocamlPackages.sedlex # liquidsoap-lang
|
|
ocamlPackages.ppx_string
|
|
|
|
# Recommended dependencies
|
|
ocamlPackages.ffmpeg
|
|
|
|
# Optional dependencies
|
|
ocamlPackages.alsa
|
|
ocamlPackages.ao
|
|
ocamlPackages.bjack
|
|
ocamlPackages.camlimages
|
|
ocamlPackages.dssi
|
|
ocamlPackages.faad
|
|
ocamlPackages.fdkaac
|
|
ocamlPackages.flac
|
|
ocamlPackages.frei0r
|
|
ocamlPackages.gd
|
|
ocamlPackages.graphics
|
|
# ocamlPackages.gstreamer # Broken but advertised feature
|
|
ocamlPackages.imagelib
|
|
ocamlPackages.inotify
|
|
ocamlPackages.ladspa
|
|
ocamlPackages.lame
|
|
ocamlPackages.lastfm
|
|
ocamlPackages.lilv
|
|
ocamlPackages.lo
|
|
ocamlPackages.mad
|
|
ocamlPackages.ogg
|
|
ocamlPackages.opus
|
|
ocamlPackages.portaudio
|
|
ocamlPackages.posix-time2
|
|
ocamlPackages.pulseaudio
|
|
ocamlPackages.samplerate
|
|
ocamlPackages.shine
|
|
ocamlPackages.soundtouch
|
|
ocamlPackages.speex
|
|
ocamlPackages.srt
|
|
ocamlPackages.ssl
|
|
ocamlPackages.taglib
|
|
ocamlPackages.theora
|
|
ocamlPackages.tsdl
|
|
ocamlPackages.tsdl-image
|
|
ocamlPackages.tsdl-ttf
|
|
ocamlPackages.vorbis
|
|
ocamlPackages.xmlplaylist
|
|
ocamlPackages.yaml
|
|
];
|
|
|
|
meta = {
|
|
description = "Swiss-army knife for multimedia streaming";
|
|
mainProgram = "liquidsoap";
|
|
homepage = "https://www.liquidsoap.info/";
|
|
changelog = "https://raw.githubusercontent.com/savonet/liquidsoap/main/CHANGES.md";
|
|
maintainers = with lib.maintainers; [
|
|
dandellion
|
|
ehmry
|
|
];
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = ocamlPackages.ocaml.meta.platforms or [ ];
|
|
};
|
|
}
|