openarena: fix loading libGL.so with libglvnd

This commit is contained in:
Alexander V. Nikolaev 2018-11-05 19:51:04 +02:00
parent d3c2247b77
commit b0d470061f

View file

@ -1,4 +1,4 @@
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libogg, libvorbis, curl }:
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libglvnd, libogg, libvorbis, curl }:
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 libogg libvorbis curl ];
libPath = stdenv.lib.makeLibraryPath [ SDL libglvnd libogg libvorbis curl ];
in ''
mkdir -pv $out/bin
cd $out