From 092c7cd3fc22c063652967304c1007119d416691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Wed, 24 Aug 2022 01:51:40 +0900 Subject: [PATCH] superTux: explicitly link X libraries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ¯\_(ツ)_/¯ --- pkgs/games/supertux/default.nix | 41 +++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/pkgs/games/supertux/default.nix b/pkgs/games/supertux/default.nix index 067ce78fae9c..227cfdcb6dc8 100644 --- a/pkgs/games/supertux/default.nix +++ b/pkgs/games/supertux/default.nix @@ -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" ];