lol

jibri: add section to xorg conf file, for module

This change is adapted from a different jibri package, written by
@puckipedia for nixcon-video-infra 2020 along with a module for jibri.
Co-authored-by: Puck Meerburg <puck@puck.moe>

authored by

Cleeyv
Puck Meerburg
and committed by
tomberek
c6c77e81 ff8ed900

+14 -1
+14 -1
pkgs/servers/jibri/default.nix
··· 1 - { lib, stdenv, fetchurl, dpkg, jre_headless, makeWrapper }: 1 + { lib, stdenv, fetchurl, dpkg, jre_headless, makeWrapper, writeText, xorg }: 2 + 3 + let 4 + xorgModulePaths = writeText "module-paths" '' 5 + Section "Files" 6 + ModulePath "${xorg.xorgserver}/lib/xorg/modules 7 + ModulePath "${xorg.xorgserver}/lib/xorg/extensions 8 + ModulePath "${xorg.xorgserver}/lib/xorg/drivers 9 + ModulePath "${xorg.xf86videodummy}/lib/xorg/modules/drivers 10 + EndSection 11 + ''; 2 12 13 + in 3 14 stdenv.mkDerivation rec { 4 15 pname = "jibri"; 5 16 version = "8.0-93-g51fe7a2"; ··· 18 29 mkdir -p $out/{bin,opt/jitsi/jibri,etc/jitsi/jibri} 19 30 mv etc/jitsi/jibri/* $out/etc/jitsi/jibri/ 20 31 mv opt/jitsi/jibri/* $out/opt/jitsi/jibri/ 32 + 33 + cat '${xorgModulePaths}' >> $out/etc/jitsi/jibri/xorg-video-dummy.conf 21 34 22 35 makeWrapper ${jre_headless}/bin/java $out/bin/jibri --add-flags "-jar $out/opt/jitsi/jibri/jibri.jar" 23 36