diff --git a/pkgs/games/papermc/derivation.nix b/pkgs/games/papermc/derivation.nix index 299248a64d080..5dd169dbc9b49 100644 --- a/pkgs/games/papermc/derivation.nix +++ b/pkgs/games/papermc/derivation.nix @@ -22,7 +22,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { makeWrapper ${lib.getExe jre} "$out/bin/minecraft-server" \ --append-flags "-jar $out/share/papermc/papermc.jar nogui" \ - --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev ]} + ${lib.optionalString stdenvNoCC.isLinux "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev ]}"} runHook postInstall '';