2013-12-15 07:24:28 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
2018-02-24 14:12:44 +01:00
|
|
|
, SDL2, libGLU_combined, openal, luajit
|
2013-12-15 07:24:28 +01:00
|
|
|
, libdevil, freetype, physfs
|
|
|
|
, libmodplug, mpg123, libvorbis, libogg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-04-26 06:53:56 +02:00
|
|
|
name = "love-0.9.1";
|
2013-12-15 07:24:28 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz";
|
2014-04-26 06:53:56 +02:00
|
|
|
sha256 = "1pikd0bzb44r4bf0jbgn78whz1yswpq1n5jc8nf87v42pm30kp84";
|
2013-12-15 07:24:28 +01:00
|
|
|
};
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-12-15 07:24:28 +01:00
|
|
|
buildInputs = [
|
2018-02-24 14:12:44 +01:00
|
|
|
SDL2 libGLU_combined openal luajit
|
2013-12-15 07:24:28 +01:00
|
|
|
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lua=luajit"
|
|
|
|
];
|
|
|
|
|
2017-05-02 13:47:36 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-DluaL_reg=luaL_Reg" ]; # needed since luajit-2.1.0-beta3
|
|
|
|
|
2013-12-15 07:24:28 +01:00
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://love2d.org;
|
2013-12-15 07:24:28 +01:00
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
2013-12-15 07:24:28 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
};
|
|
|
|
}
|