Loading pkgs/applications/misc/xsw/default.nix +9 −6 Original line number Diff line number Diff line Loading @@ -39,15 +39,18 @@ stdenv.mkDerivation rec { SDL_gfx ]; env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]); ]) + " -lSDL"; patches = [ ./parse.patch # Fixes compilation error by avoiding redundant definitions. ./sdl-error.patch # Adds required include for SDL_GetError. ]; meta = with lib; { Loading pkgs/applications/misc/xsw/sdl-error.patch 0 → 100644 +11 −0 Original line number Diff line number Diff line diff --git a/src/presenter.c b/src/presenter.c index a082541..74bfbec 100644 --- a/src/presenter.c +++ b/src/presenter.c @@ -5,5 +5,6 @@ #include <stdlib.h> #include "SDL_ttf.h" +#include <SDL/SDL_error.h> #include "presenter.h" #include "execute.h" #include "list.h" Loading
pkgs/applications/misc/xsw/default.nix +9 −6 Original line number Diff line number Diff line Loading @@ -39,15 +39,18 @@ stdenv.mkDerivation rec { SDL_gfx ]; env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]); ]) + " -lSDL"; patches = [ ./parse.patch # Fixes compilation error by avoiding redundant definitions. ./sdl-error.patch # Adds required include for SDL_GetError. ]; meta = with lib; { Loading
pkgs/applications/misc/xsw/sdl-error.patch 0 → 100644 +11 −0 Original line number Diff line number Diff line diff --git a/src/presenter.c b/src/presenter.c index a082541..74bfbec 100644 --- a/src/presenter.c +++ b/src/presenter.c @@ -5,5 +5,6 @@ #include <stdlib.h> #include "SDL_ttf.h" +#include <SDL/SDL_error.h> #include "presenter.h" #include "execute.h" #include "list.h"