mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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:
parent
88130cec79
commit
7485d71218
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user