ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
40 lines
1.1 KiB
Nix
40 lines
1.1 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 = "11.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "love2d";
|
|
repo = "love";
|
|
rev = version;
|
|
sha256 = "sha256-wZktNh4UB3QH2wAIIlnYUlNoXbjEDwUmPnT4vesZNm0=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "love";
|
|
license = lib.licenses.zlib;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
};
|
|
}
|