3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/love/11.nix
wackbyte f45e079999
love: updates, fetch from GitHub, refactor name to pname + version, etc
- love_0_9: 0.9.1 -> 0.9.2
- love_11: 11.3 -> 11.4
- Updated the src of each package to fetch from GitHub rather than
  Bitbucket as the repository moved
- Changed name to pname + version (#103997)
- Moved 11.1.nix to 11.nix to fit the others and because the version is
  no longer 11.1
- Changed all the homepage links from http to https just because
- love_0_9 is still broken unfortunately
2022-01-15 00:01:58 -05:00

40 lines
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.4";
src = fetchFromGitHub {
owner = "love2d";
repo = "love";
rev = version;
sha256 = "0kpdp6v8m8j0r7ppyy067shr0lfgrlh0dwb7ccws76d389vizwhb";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
libvorbis libogg libtheora autoconf which libtool automake
];
preConfigure = "$shell ./platform/unix/automagic";
configureFlags = [
"--with-lua=luajit"
];
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 ];
};
}