2022-01-19 23:45:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config
|
|
|
|
, SDL2, libGLU, libGL, openal, luajit
|
|
|
|
, libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg
|
|
|
|
, libtheora, which, autoconf, automake, libtool
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "love";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "11.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "love2d";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "love";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-C/Ifd0KjmaM5Y2fxBiDNz1GQoT4GeH/vyUCiira57U4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
|
2022-04-03 18:54:34 +00:00
|
|
|
libvorbis libogg libtheora which libtool
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "$shell ./platform/unix/automagic";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lua=luajit"
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
|
|
|
|
|
|
|
|
meta = {
|
2022-01-19 23:45:15 +00:00
|
|
|
homepage = "https://love2d.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Lua-based 2D game engine/scripting language";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.zlib;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|