mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
love_0_8: drop
This commit is contained in:
parent
6e6058400a
commit
0b087a8cbe
|
@ -1,54 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config
|
||||
, SDL, libGLU, libGL, openal, lua
|
||||
, libdevil, freetype, physfs
|
||||
, libmodplug, mpg123, libvorbis, libogg
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "love";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/love2d/love/releases/download/${version}/love-${version}-linux-src.tar.gz";
|
||||
sha256 = "1k4fcsa8zzi04ja179bmj24hvqcbm3icfvrvrzyz2gw9qwfclrwi";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
SDL libGLU libGL openal lua
|
||||
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
luaoptions="${"''"} lua luajit "
|
||||
for i in lua luajit-; do
|
||||
for j in 5 5.0 5.1 5.2 5.3 5.4; do
|
||||
luaoptions="$luaoptions $i$j "
|
||||
done
|
||||
done
|
||||
luaso="$(echo "${lua}/lib/"lib*.so.*)"
|
||||
luaso="''${luaso##*/lib}"
|
||||
luaso="''${luaso%%.so*}"
|
||||
luaoptions="$luaoptions $luaso"
|
||||
sed -e "s/${"''"} lua lua.*;/$luaoptions;/" -i configure
|
||||
|
||||
luaincdir="$(echo "${lua}/include"/*/ )"
|
||||
test -d "$luaincdir" && {
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$luaincdir"
|
||||
} || true
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
"-I${SDL.dev}/include/SDL"
|
||||
"-I${freetype.dev}include/freetype2"
|
||||
"-DGL_GLEXT_PROTOTYPES" # https://community.khronos.org/t/glgenbuffers-was-not-declared-in-this-scope/59283/2
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -573,6 +573,7 @@ mapAliases ({
|
|||
lua5_expat = luaPackages.luaexpat; # added 2017-05-02
|
||||
lua5_sec = luaPackages.luasec; # added 2017-05-02
|
||||
lumpy = throw "lumpy has been removed from nixpkgs, as it is stuck on python2."; # added 2022-01-12
|
||||
love_0_8 = throw "love_0_8 was removed because it very old engine and no longer used by any package in nixpkgs"; # added 2022-01-15
|
||||
lxappearance-gtk3 = throw "lxappearance-gtk3 has been removed. Use lxappearance instead, which now defaults to Gtk3"; # added 2020-06-03
|
||||
lzma = xz; # moved from top-level 2021-03-14
|
||||
m3d-linux = m33-linux; # added 2016-08-13
|
||||
|
|
|
@ -13519,7 +13519,6 @@ with pkgs;
|
|||
lolcode = callPackage ../development/interpreters/lolcode { };
|
||||
|
||||
love_0_7 = callPackage ../development/interpreters/love/0.7.nix { lua=lua5_1; };
|
||||
love_0_8 = callPackage ../development/interpreters/love/0.8.nix { lua=lua5_1; };
|
||||
love_0_9 = callPackage ../development/interpreters/love/0.9.nix { };
|
||||
love_0_10 = callPackage ../development/interpreters/love/0.10.nix { };
|
||||
love_11 = callPackage ../development/interpreters/love/11.nix { };
|
||||
|
|
Loading…
Reference in a new issue