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 = "sha256-wZktNh4UB3QH2wAIIlnYUlNoXbjEDwUmPnT4vesZNm0=";
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 env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
33 homepage = "https://love2d.org";
34 description = "Lua-based 2D game engine/scripting language";
36 license = lib.licenses.zlib;
37 platforms = lib.platforms.linux;
38 maintainers = [ lib.maintainers.raskin ];