mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config
|
|
, SDL2, libGLU, libGL, openal, luajit
|
|
, libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg
|
|
, libtheora, which, autoconf, automake, libtool
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "love";
|
|
version = "0.10.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "love2d";
|
|
repo = "love";
|
|
rev = version;
|
|
sha256 = "19yfmlcx6w8yi4ndm5lni8lrsvnn77bxw5py0dc293nzzlaqa9ym";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake ];
|
|
buildInputs = [
|
|
SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
|
|
libvorbis libogg libtheora which libtool
|
|
];
|
|
|
|
preConfigure = "$shell ./platform/unix/automagic";
|
|
|
|
configureFlags = [
|
|
"--with-lua=luajit"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
|
|
|
|
meta = {
|
|
homepage = "https://love2d.org";
|
|
description = "A Lua-based 2D game engine/scripting language";
|
|
license = lib.licenses.zlib;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
};
|
|
}
|