1 { lib, stdenv, fetchFromBitbucket, pkg-config, SDL2, libGLU, libGL, openal, luajit,
2 libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
3 libtheora, which, autoconf, automake, libtool
12 name = "${pname}-${version}";
13 src = fetchFromBitbucket {
17 sha256 = "18gfp65ngb8k8g7hgbw2bhrwk2i7m56m21d39pk4484q9z8p4vm7";
20 nativeBuildInputs = [ pkg-config ];
22 SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
23 libvorbis libogg libtheora autoconf which libtool automake
26 preConfigure = "$shell ./platform/unix/automagic";
32 NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
35 homepage = "http://love2d.org";
36 description = "A Lua-based 2D game engine/scripting language";
37 license = lib.licenses.zlib;
38 platforms = lib.platforms.linux;
39 maintainers = [ lib.maintainers.raskin ];