Merge pull request #68467 from aanderse/zhf/love_0_8

love_0_8: fix broken build
This commit is contained in:
worldofpeace 2019-09-11 05:59:59 -04:00 committed by GitHub
commit 85c5c3ab1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,11 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "love-0.8.0"; pname = "love";
version = "0.8.0";
src = fetchurl { src = fetchurl {
url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz"; url = "https://bitbucket.org/rude/love/downloads/${pname}-${version}-linux-src.tar.gz";
sha256 = "1k4fcsa8zzi04ja179bmj24hvqcbm3icfvrvrzyz2gw9qwfclrwi"; sha256 = "1k4fcsa8zzi04ja179bmj24hvqcbm3icfvrvrzyz2gw9qwfclrwi";
}; };
@ -36,13 +38,14 @@ stdenv.mkDerivation rec {
} || true } || true
''; '';
NIX_CFLAGS_COMPILE = '' NIX_CFLAGS_COMPILE = [
-I${SDL.dev}/include/SDL "-I${SDL.dev}/include/SDL"
-I${freetype.dev}include/freetype2 "-I${freetype.dev}include/freetype2"
''; "-DGL_GLEXT_PROTOTYPES" # https://community.khronos.org/t/glgenbuffers-was-not-declared-in-this-scope/59283/2
];
meta = { meta = {
homepage = http://love2d.org; homepage = "http://love2d.org";
description = "A Lua-based 2D game engine/scripting language"; description = "A Lua-based 2D game engine/scripting language";
license = stdenv.lib.licenses.zlib; license = stdenv.lib.licenses.zlib;