superTux: explicitly link X libraries

It does not make sense why SDL doesn't propagate these build inputs
or why they're also required on Wayland, but it works so ¯\_(ツ)_/¯
This commit is contained in:
Nguyễn Gia Phong 2022-08-24 01:51:40 +09:00
parent 2da64a8127
commit 092c7cd3fc
No known key found for this signature in database
GPG key ID: 27148B2C06A2224B

View file

@ -1,6 +1,23 @@
{ lib, stdenv, fetchurl, cmake, pkg-config, SDL2, SDL2_image , curl
, libogg, libvorbis, libGLU, libGL, openal, boost, glew
, libpng, freetype, glm
{ lib
, stdenv
, fetchurl
, cmake
, pkg-config
, boost
, curl
, SDL2
, SDL2_image
, libSM
, libXext
, libpng
, freetype
, libGLU
, libGL
, glew
, glm
, openal
, libogg
, libvorbis
}:
stdenv.mkDerivation rec {
@ -14,8 +31,22 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ SDL2 SDL2_image curl libogg libvorbis libGLU libGL openal boost glew
libpng freetype glm
buildInputs = [
boost
curl
SDL2
SDL2_image
libSM
libXext
libpng
freetype
libGL
libGLU
glew
glm
openal
libogg
libvorbis
];
cmakeFlags = [ "-DENABLE_BOOST_STATIC_LIBS=OFF" ];