openarena: add missing dependency - openal (#50903)

Without this change:
'''
------ Initializing Sound ------
Loading "libopenal.so.1"...
Failed to load library: "libopenal.so.1".
'''

when openal is selected. In addition, upcoming 0.19.1 openal supports 3d positioning audio via stereo (HTRF).
This commit is contained in:
cx405 2018-11-22 08:43:56 +01:00 committed by worldofpeace
parent 25e7f59516
commit 8719126517

View file

@ -1,4 +1,4 @@
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libglvnd, libogg, libvorbis, curl }:
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libglvnd, libogg, libvorbis, curl, openal }:
stdenv.mkDerivation rec {
name = "openarena-${version}";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
installPhase = let
gameDir = "$out/openarena-$version";
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
libPath = stdenv.lib.makeLibraryPath [ SDL libglvnd libogg libvorbis curl ];
libPath = stdenv.lib.makeLibraryPath [ SDL libglvnd libogg libvorbis curl openal ];
in ''
mkdir -pv $out/bin
cd $out