love: update to 0.8.0
This commit is contained in:
parent
95935e65c1
commit
e270a609eb
|
@ -1,58 +1,33 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, lua5, mpg123, physfs, freetype, libdevil, openal, SDL, libvorbis
|
, SDL, mesa, openal, lua5
|
||||||
, libogg, flac, mesa, libtiff, libpng, libjpeg, libmodplug
|
, libdevil, freetype, physfs
|
||||||
, ...}:
|
, libmodplug, mpg123, libvorbis, libogg
|
||||||
builderDefsPackage
|
}:
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "love-0.8.0";
|
||||||
sourceInfo = rec {
|
src = fetchurl {
|
||||||
baseName="love";
|
url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz";
|
||||||
version="0.7.2";
|
sha256 = "1k4fcsa8zzi04ja179bmj24hvqcbm3icfvrvrzyz2gw9qwfclrwi";
|
||||||
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;
|
buildInputs = [
|
||||||
inherit buildInputs;
|
pkgconfig SDL mesa openal lua5
|
||||||
|
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
||||||
|
];
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
NIX_CFLAGS_COMPILE = ''
|
||||||
phaseNames = ["setVars" "fixSrc" "doConfigure" "doMakeInstall"];
|
-I${SDL}/include/SDL
|
||||||
|
-I${freetype}include/freetype2
|
||||||
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 = {
|
meta = {
|
||||||
|
homepage = "http://love2d.org";
|
||||||
description = "A Lua-based 2D game engine/scripting language";
|
description = "A Lua-based 2D game engine/scripting language";
|
||||||
maintainers = with a.lib.maintainers;
|
license = "zlib";
|
||||||
[
|
|
||||||
raskin
|
platforms = stdenv.lib.platforms.linux;
|
||||||
];
|
maintainers = [ stdenv.lib.matainters.raskin ];
|
||||||
platforms = with a.lib.platforms;
|
};
|
||||||
linux;
|
}
|
||||||
license = a.lib.licenses.zlib;
|
|
||||||
};
|
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://love2d.org/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue