2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchFromBitbucket, pkg-config, SDL2, libGLU, libGL, openal, luajit,
|
2018-05-07 21:57:48 +00:00
|
|
|
libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
|
|
|
|
libtheora, which, autoconf, automake, libtool
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "love";
|
2019-11-02 12:50:48 +00:00
|
|
|
version = "11.3";
|
2018-05-07 21:57:48 +00:00
|
|
|
in
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-05-07 21:57:48 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "rude";
|
|
|
|
repo = "love";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2019-11-02 12:50:48 +00:00
|
|
|
sha256 = "18gfp65ngb8k8g7hgbw2bhrwk2i7m56m21d39pk4484q9z8p4vm7";
|
2018-05-07 21:57:48 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-05-07 21:57:48 +00:00
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
|
2018-05-07 21:57:48 +00:00
|
|
|
libvorbis libogg libtheora autoconf which libtool automake
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "$shell ./platform/unix/automagic";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lua=luajit"
|
|
|
|
];
|
|
|
|
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
|
2018-05-07 21:57:48 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://love2d.org";
|
2018-05-07 21:57:48 +00:00
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
2021-01-23 13:15:07 +00:00
|
|
|
license = lib.licenses.zlib;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
2018-05-07 21:57:48 +00:00
|
|
|
};
|
|
|
|
}
|