2019-11-10 17:44:34 +01:00
|
|
|
{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU, libGL, openal, luajit,
|
2016-02-14 22:14:00 +01:00
|
|
|
libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
|
|
|
|
libtheora, which, autoconf, automake, libtool
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "love";
|
2017-02-13 12:49:08 +01:00
|
|
|
version = "0.10.2";
|
2016-02-14 22:14:00 +01:00
|
|
|
in
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2016-02-14 22:14:00 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "rude";
|
|
|
|
repo = "love";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2017-02-13 12:49:08 +01:00
|
|
|
sha256 = "19yfmlcx6w8yi4ndm5lni8lrsvnn77bxw5py0dc293nzzlaqa9ym";
|
2016-02-14 22:14:00 +01:00
|
|
|
};
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-02-14 22:14:00 +01:00
|
|
|
buildInputs = [
|
2019-11-10 17:44:34 +01:00
|
|
|
SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
|
2016-02-14 22:14:00 +01:00
|
|
|
libvorbis libogg libtheora autoconf which libtool automake
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "$shell ./platform/unix/automagic";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lua=luajit"
|
|
|
|
];
|
|
|
|
|
2019-10-30 01:12:09 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
|
2017-05-02 13:47:36 +02:00
|
|
|
|
2016-02-14 22:14:00 +01:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://love2d.org";
|
2016-02-14 22:14:00 +01:00
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
|
|
|
license = stdenv.lib.licenses.zlib;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
};
|
|
|
|
}
|