2013-02-21 01:44:41 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, SDL, mesa, openal, lua5
|
|
|
|
, libdevil, freetype, physfs
|
|
|
|
, libmodplug, mpg123, libvorbis, libogg
|
|
|
|
}:
|
2011-09-11 17:05:48 +00:00
|
|
|
|
2013-02-21 01:44:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "love-0.8.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz";
|
|
|
|
sha256 = "1k4fcsa8zzi04ja179bmj24hvqcbm3icfvrvrzyz2gw9qwfclrwi";
|
2011-09-11 17:05:48 +00:00
|
|
|
};
|
|
|
|
|
2013-02-21 01:44:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig SDL mesa openal lua5
|
|
|
|
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
|
|
|
];
|
2011-09-11 17:05:48 +00:00
|
|
|
|
2013-02-21 01:44:41 +00:00
|
|
|
NIX_CFLAGS_COMPILE = ''
|
|
|
|
-I${SDL}/include/SDL
|
|
|
|
-I${freetype}include/freetype2
|
2011-09-11 17:05:48 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-02-21 01:44:41 +00:00
|
|
|
homepage = "http://love2d.org";
|
2011-09-11 17:05:48 +00:00
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
2013-02-21 01:44:41 +00:00
|
|
|
license = "zlib";
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-02-21 13:28:58 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
2011-09-11 17:05:48 +00:00
|
|
|
};
|
2013-02-21 01:44:41 +00:00
|
|
|
}
|