openarena: fix loading libGL.so with libglvnd

(cherry picked from commit b0d470061f)
This commit is contained in:
Alexander V. Nikolaev
2018-11-05 19:51:04 +02:00
committed by Jörg Thalheim
parent 435cfc8876
commit cf3ef93e04

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