mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
1.1 KiB
Nix
41 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 = "Lua-based 2D game engine/scripting language";
|
|
mainProgram = "love";
|
|
license = lib.licenses.zlib;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
};
|
|
}
|