2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2019-11-10 16:44:34 +00:00
|
|
|
, SDL2, libGLU, libGL, openal, luajit
|
2013-12-15 06:24:28 +00:00
|
|
|
, libdevil, freetype, physfs
|
|
|
|
, libmodplug, mpg123, libvorbis, libogg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-04-26 05:53:56 +01:00
|
|
|
name = "love-0.9.1";
|
2013-12-15 06:24:28 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz";
|
2014-04-26 05:53:56 +01:00
|
|
|
sha256 = "1pikd0bzb44r4bf0jbgn78whz1yswpq1n5jc8nf87v42pm30kp84";
|
2013-12-15 06:24:28 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2013-12-15 06:24:28 +00:00
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
SDL2 libGLU libGL openal luajit
|
2013-12-15 06:24:28 +00:00
|
|
|
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lua=luajit"
|
|
|
|
];
|
|
|
|
|
2017-05-02 12:47:36 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-DluaL_reg=luaL_Reg" ]; # needed since luajit-2.1.0-beta3
|
|
|
|
|
2013-12-15 06:24:28 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://love2d.org";
|
2013-12-15 06:24:28 +00:00
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
2021-01-23 13:15:07 +00:00
|
|
|
license = lib.licenses.zlib;
|
2013-12-15 06:24:28 +00:00
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
2019-10-07 16:20:23 +01:00
|
|
|
broken = true;
|
2013-12-15 06:24:28 +00:00
|
|
|
};
|
|
|
|
}
|