nixpkgs/pkgs/development/interpreters/love/11.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config
, SDL2, libGLU, libGL, openal, luajit
, libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg
, libtheora, which, autoconf, automake, libtool
2018-05-07 21:57:48 +00:00
}:
stdenv.mkDerivation rec {
2018-05-07 21:57:48 +00:00
pname = "love";
version = "11.4";
2018-05-07 21:57:48 +00:00
src = fetchFromGitHub {
owner = "love2d";
2018-05-07 21:57:48 +00:00
repo = "love";
2019-09-08 23:38:31 +00:00
rev = version;
sha256 = "0kpdp6v8m8j0r7ppyy067shr0lfgrlh0dwb7ccws76d389vizwhb";
2018-05-07 21:57:48 +00:00
};
nativeBuildInputs = [ pkg-config autoconf automake ];
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
libvorbis libogg libtheora which libtool
2018-05-07 21:57:48 +00:00
];
preConfigure = "$shell ./platform/unix/automagic";
configureFlags = [
"--with-lua=luajit"
];
env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
2018-05-07 21:57:48 +00:00
meta = {
homepage = "https://love2d.org";
2018-05-07 21:57:48 +00:00
description = "A Lua-based 2D game engine/scripting language";
license = lib.licenses.zlib;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.raskin ];
2018-05-07 21:57:48 +00:00
};
}