uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
57
pkgs/servers/jitsi-videobridge/default.nix
Normal file
57
pkgs/servers/jitsi-videobridge/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, dpkg, jre_headless, nixosTests }:
|
||||
|
||||
let
|
||||
pname = "jitsi-videobridge2";
|
||||
version = "2.1-595-g3637fda4";
|
||||
src = fetchurl {
|
||||
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
|
||||
sha256 = "vwn9C8M3wwiIqwxAu1MDe2ra2SCQ2Hssco5J/xUFoKM=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version src;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
substituteInPlace usr/share/jitsi-videobridge/jvb.sh \
|
||||
--replace "exec java" "exec ${jre_headless}/bin/java"
|
||||
|
||||
mkdir -p $out/{bin,share/jitsi-videobridge,etc/jitsi/videobridge}
|
||||
mv etc/jitsi/videobridge/logging.properties $out/etc/jitsi/videobridge/
|
||||
cp ${./logging.properties-journal} $out/etc/jitsi/videobridge/logging.properties-journal
|
||||
mv usr/share/jitsi-videobridge/* $out/share/jitsi-videobridge/
|
||||
ln -s $out/share/jitsi-videobridge/jvb.sh $out/bin/jitsi-videobridge
|
||||
|
||||
# work around https://github.com/jitsi/jitsi-videobridge/issues/1547
|
||||
wrapProgram $out/bin/jitsi-videobridge \
|
||||
--set VIDEOBRIDGE_GC_TYPE G1GC
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
single-host-smoke-test = nixosTests.jitsi-meet;
|
||||
};
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A WebRTC compatible video router";
|
||||
longDescription = ''
|
||||
Jitsi Videobridge is an XMPP server component that allows for multiuser video communication.
|
||||
Unlike the expensive dedicated hardware videobridges, Jitsi Videobridge does not mix the video
|
||||
channels into a composite video stream, but only relays the received video channels to all call
|
||||
participants. Therefore, while it does need to run on a server with good network bandwidth,
|
||||
CPU horsepower is not that critical for performance.
|
||||
'';
|
||||
homepage = "https://github.com/jitsi/jitsi-videobridge";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.jitsi.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
handlers = java.util.logging.ConsoleHandler
|
||||
java.util.logging.ConsoleHandler.level = ALL
|
||||
java.util.logging.ConsoleHandler.formatter = org.jitsi.utils.logging2.JitsiLogFormatter
|
||||
.level = INFO
|
||||
org.jitsi.videobridge.xmpp.ComponentImpl.level = FINE
|
||||
org.jitsi.impl.neomedia.MediaStreamImpl.level = WARNING
|
||||
org.jitsi.utils.logging2.JitsiLogFormatter.disableTimestamp = true
|
||||
12
pkgs/servers/jitsi-videobridge/update.sh
Executable file
12
pkgs/servers/jitsi-videobridge/update.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl pup common-updater-scripts
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
version="$(curl https://download.jitsi.org/stable/ | \
|
||||
pup 'a[href] text{}' | \
|
||||
awk -F'[_-]' '/jitsi-videobridge2/ {printf $3"-"$4"-"$5"\n"}' | \
|
||||
sort -u | \
|
||||
tail -n 1)"
|
||||
|
||||
update-source-version jitsi-videobridge "$version"
|
||||
Loading…
Add table
Add a link
Reference in a new issue