openttd: Add XDG support (#89296)

This commit is contained in:
Stefan Frijters 2020-06-01 19:09:11 +02:00 committed by GitHub
parent 59aacec664
commit 46fcaf3c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchzip, pkgconfig, SDL2, libpng, zlib, xz, freetype, fontconfig
{ stdenv, fetchurl, fetchzip, pkgconfig, SDL2, libpng, zlib, xz, freetype, fontconfig, libxdg_basedir
, withOpenGFX ? true, withOpenSFX ? true, withOpenMSX ? true
, withFluidSynth ? true, audioDriver ? "alsa", fluidsynth, soundfont-fluid, procps
, writeScriptBin, makeWrapper, runtimeShell
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs = [ SDL2 libpng xz zlib freetype fontconfig ]
buildInputs = [ SDL2 libpng xz zlib freetype fontconfig libxdg_basedir ]
++ stdenv.lib.optionals withFluidSynth [ fluidsynth soundfont-fluid ];
prefixKey = "--prefix-dir=";