papermc: add udev to LD_LIBRARY_PATH

Fixes error: [oshi.software.os.linux.LinuxOperatingSystem] Did not find udev library in operating system. Some features may not work.
This commit is contained in:
qubitnano 2024-05-07 22:53:23 -04:00
parent 88130cec79
commit 7485d71218

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre, version, hash }:
{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre, version, hash, udev }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "papermc";
@ -21,7 +21,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
install -D $src $out/share/papermc/papermc.jar
makeWrapper ${lib.getExe jre} "$out/bin/minecraft-server" \
--append-flags "-jar $out/share/papermc/papermc.jar nogui"
--append-flags "-jar $out/share/papermc/papermc.jar nogui" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev ]}
runHook postInstall
'';