@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU_combined, openal, luajit,
2+ libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
3+ libtheora, which, autoconf, automake, libtool
4+}:
5+
6+let
7+ pname = "love";
8+ version = "11.1";
9+in
10+
11+stdenv.mkDerivation rec {
12+ name = "${pname}-${version}";
13+ src = fetchFromBitbucket {
14+ owner = "rude";
15+ repo = "love";
16+ rev = "${version}";
17+ sha256 = "16jn6klbsz8qi2wn3llbr7ri5arlc0b19la19ypzk6p7v20z4sfr";
18+ };
19+
20+ nativeBuildInputs = [ pkgconfig ];
21+ buildInputs = [
22+ SDL2 libGLU_combined openal luajit libdevil freetype physfs libmodplug mpg123
23+ libvorbis libogg libtheora autoconf which libtool automake
24+ ];
25+
26+ preConfigure = "$shell ./platform/unix/automagic";
27+
28+ configureFlags = [
29+ "--with-lua=luajit"
30+ ];
31+
32+ NIX_CFLAGS_COMPILE = [ "-DluaL_reg=luaL_Reg" ]; # needed since luajit-2.1.0-beta3
33+
34+ meta = {
35+ homepage = http://love2d.org;
36+ description = "A Lua-based 2D game engine/scripting language";
37+ license = stdenv.lib.licenses.zlib;
38+ platforms = stdenv.lib.platforms.linux;
39+ maintainers = [ stdenv.lib.maintainers.raskin ];
40+ };
41+}