2018-05-07 22:57:48 +01:00
|
|
|
{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU_combined, openal, luajit,
|
|
|
|
libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
|
|
|
|
libtheora, which, autoconf, automake, libtool
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "love";
|
2018-12-15 11:38:59 +00:00
|
|
|
version = "11.2";
|
2018-05-07 22:57:48 +01:00
|
|
|
in
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-05-07 22:57:48 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "rude";
|
|
|
|
repo = "love";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2018-12-17 16:15:28 +00:00
|
|
|
sha256 = "0q1lsgc1621czrg49nmabq6am9sgxa9syxrwzlksqqr4dyzw4nmf";
|
2018-05-07 22:57:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
SDL2 libGLU_combined openal luajit libdevil freetype physfs libmodplug mpg123
|
|
|
|
libvorbis libogg libtheora autoconf which libtool automake
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "$shell ./platform/unix/automagic";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lua=luajit"
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-DluaL_reg=luaL_Reg" ]; # needed since luajit-2.1.0-beta3
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://love2d.org;
|
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
|
|
|
license = stdenv.lib.licenses.zlib;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
};
|
|
|
|
}
|