diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-09-11 17:05:48 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-09-11 17:05:48 +0000 |
commit | 7bb4bf3fe053d93354172d63b6ce272112736cf6 (patch) | |
tree | 66149ab1e92506820732586e2a87d245d08d91ab /pkgs/development/interpreters/love | |
parent | 90d89bfe68529dfbba764d34487a5dba6bb2f5d5 (diff) | |
download | nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.tar nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.tar.gz nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.tar.bz2 nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.tar.lz nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.tar.xz nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.tar.zst nixlib-7bb4bf3fe053d93354172d63b6ce272112736cf6.zip |
Adding LOVE Lua-based game framework/interpreter
svn path=/nixpkgs/trunk/; revision=29188
Diffstat (limited to 'pkgs/development/interpreters/love')
-rw-r--r-- | pkgs/development/interpreters/love/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/love/default.nix b/pkgs/development/interpreters/love/default.nix new file mode 100644 index 000000000000..ee68f85725ab --- /dev/null +++ b/pkgs/development/interpreters/love/default.nix @@ -0,0 +1,58 @@ +x@{builderDefsPackage + , lua5, mpg123, physfs, freetype, libdevil, openal, SDL, libvorbis + , libogg, flac, mesa, libtiff, libpng, libjpeg, libmodplug + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="love"; + version="0.7.2"; + name="${baseName}-${version}"; + url="https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz"; + hash="0s7jywkvydlshlgy11ilzngrnybmq5xlgzp2v2dhlffwrfqdqym5"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["setVars" "fixSrc" "doConfigure" "doMakeInstall"]; + + fixSrc =a.fullDepEntry '' + sed -e '/typedef void (\*__GLXextFuncPtr)/d' -i src/modules/graphics/opengl/GLee.h + '' ["minInit" "doUnpack"]; + + setVars = a.noDepEntry '' + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL}/include/SDL" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2" + ''; + + meta = { + description = "A Lua-based 2D game engine/scripting language"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.zlib; + }; + passthru = { + updateInfo = { + downloadPage = "http://love2d.org/"; + }; + }; +}) x + |