summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/love
diff options
context:
space:
mode:
authorMichiel Leenaars <ml.software@leenaa.rs>2016-02-27 22:31:29 +0100
committerMichiel Leenaars <ml.software@leenaa.rs>2016-02-27 22:37:36 +0100
commit62c3ad1dde1304d97ca0c32c4f3965075e3e4526 (patch)
tree24122f33292bbdfccc2a8a09f4d3def93e87d3c5 /pkgs/development/interpreters/love
parentc39cc6cd60469c682566b95597ce26194aabe668 (diff)
love: fix broken 0.8 + added version 0.72
Diffstat (limited to 'pkgs/development/interpreters/love')
-rw-r--r--pkgs/development/interpreters/love/0.7.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/love/0.7.nix b/pkgs/development/interpreters/love/0.7.nix
new file mode 100644
index 000000000000..65f38ae1613d
--- /dev/null
+++ b/pkgs/development/interpreters/love/0.7.nix
@@ -0,0 +1,51 @@
+{ stdenv, fetchurl, pkgconfig
+, SDL, mesa, openal, lua
+, libdevil, freetype, physfs
+, libmodplug, mpg123, libvorbis, libogg
+}:
+
+stdenv.mkDerivation rec {
+ name = "love-0.7.2";
+ src = fetchurl {
+ url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz";
+ sha256 = "0s7jywkvydlshlgy11ilzngrnybmq5xlgzp2v2dhlffwrfqdqym5";
+ };
+
+ buildInputs = [
+ pkgconfig SDL mesa 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 = ''
+ -I${SDL}/include/SDL
+ -I${freetype}include/freetype2
+ '';
+
+ meta = {
+ homepage = "http://love2d.org";
+ description = "A Lua-based 2D game engine/scripting language";
+ license = stdenv.lib.licenses.zlib;
+
+ platforms = stdenv.lib.platforms.linux;
+ maintainers = [ stdenv.lib.maintainers.raskin ];
+ };
+}