openttd: add some missing dependencies (#247671)

Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
Daniel Hill 2023-08-10 00:53:08 +12:00 committed by GitHub
parent 1112db61d3
commit 71390f9bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,11 @@
{ lib, stdenv, fetchurl, fetchzip, cmake, SDL2, libpng, zlib, xz, freetype, fontconfig { lib, stdenv, fetchurl, fetchzip, cmake, pkg-config
, SDL2, libpng, zlib, xz, freetype, fontconfig
, nlohmann_json, curl, icu, harfbuzz, expat, glib, pcre2
, withOpenGFX ? true, withOpenSFX ? true, withOpenMSX ? true , withOpenGFX ? true, withOpenSFX ? true, withOpenMSX ? true
, withFluidSynth ? true, audioDriver ? "alsa", fluidsynth, soundfont-fluid, procps , withFluidSynth ? true, audioDriver ? "alsa"
, writeScriptBin, makeWrapper, runtimeShell , fluidsynth, soundfont-fluid, libsndfile
}: , flac, libogg, libvorbis, libopus, libmpg123, pulseaudio, alsa-lib, libjack2
, procps, writeScriptBin, makeWrapper, runtimeShell }:
let let
opengfx = fetchzip { opengfx = fetchzip {
@ -36,9 +39,14 @@ stdenv.mkDerivation rec {
hash = "sha256-Kh3roBv+WOIYiHn0UMP6TzgZJxq0m/NI3WZUXwQNFG8="; hash = "sha256-Kh3roBv+WOIYiHn0UMP6TzgZJxq0m/NI3WZUXwQNFG8=";
}; };
nativeBuildInputs = [ cmake makeWrapper ]; nativeBuildInputs = [ cmake pkg-config makeWrapper ];
buildInputs = [ SDL2 libpng xz zlib freetype fontconfig ] buildInputs = [
++ lib.optionals withFluidSynth [ fluidsynth soundfont-fluid ]; SDL2 libpng xz zlib freetype fontconfig
nlohmann_json curl icu harfbuzz expat glib pcre2
] ++ lib.optionals withFluidSynth [
fluidsynth soundfont-fluid libsndfile
flac libogg libvorbis libopus libmpg123 pulseaudio alsa-lib libjack2
];
prefixKey = "--prefix-dir="; prefixKey = "--prefix-dir=";