1 { lib, stdenv, fetchFromGitHub, pkg-config
2 , SDL2, libGLU, libGL, openal, luajit
3 , libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg
4 , libtheora, which, autoconf, automake, libtool
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "0kpdp6v8m8j0r7ppyy067shr0lfgrlh0dwb7ccws76d389vizwhb";
18 nativeBuildInputs = [ pkg-config autoconf automake ];
20 SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
21 libvorbis libogg libtheora which libtool
24 preConfigure = "$shell ./platform/unix/automagic";
30 NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
33 homepage = "https://love2d.org";
34 description = "A Lua-based 2D game engine/scripting language";
35 license = lib.licenses.zlib;
36 platforms = lib.platforms.linux;
37 maintainers = [ lib.maintainers.raskin ];