Created
July 7, 2018 19:13
-
-
Save infinisil/121a1625448ccc9b0aa98f9c203538ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pkgs/games/xonotic/default.nix b/pkgs/games/xonotic/default.nix | |
index 6d9ae55e639..ee228296462 100644 | |
--- a/pkgs/games/xonotic/default.nix | |
+++ b/pkgs/games/xonotic/default.nix | |
@@ -2,7 +2,7 @@ | |
, # required for both | |
unzip, libjpeg, zlib, libvorbis, curl, patchelf | |
, # glx | |
- libX11, libGLU_combined, libXpm, libXext, libXxf86vm, alsaLib | |
+ libX11, libGLU_combined, libXpm, libXext, libXxf86vm, alsaLib, libGL | |
, # sdl | |
SDL2 | |
}: | |
@@ -61,11 +61,13 @@ stdenv.mkDerivation rec { | |
--add-needed ${curl.out}/lib/libcurl.so \ | |
--add-needed ${libvorbis}/lib/libvorbisfile.so \ | |
--add-needed ${libvorbis}/lib/libvorbis.so \ | |
+ --set-rpath "${stdenv.lib.makeLibraryPath [ libGL ]} \ | |
$out/bin/xonotic-glx | |
patchelf \ | |
--add-needed ${curl.out}/lib/libcurl.so \ | |
--add-needed ${libvorbis}/lib/libvorbisfile.so \ | |
--add-needed ${libvorbis}/lib/libvorbis.so \ | |
+ --set-rpath "${stdenv.lib.makeLibraryPath [ libGL ]} \ | |
$out/bin/xonotic-sdl | |
''; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment