commit
d2c57ddabb
31
pkgs/development/interpreters/love/0.9.nix
Normal file
31
pkgs/development/interpreters/love/0.9.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
, SDL2, mesa, openal, luajit
|
||||
, libdevil, freetype, physfs
|
||||
, libmodplug, mpg123, libvorbis, libogg
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "love-0.9.0";
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/rude/love/downloads/${name}-linux-src.tar.gz";
|
||||
sha256 = "048n94584cnmdaf2rshakdzbj1lz2yd7k08aiykkpz13aaa283ag";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig SDL2 mesa openal luajit
|
||||
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-lua=luajit"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "http://love2d.org";
|
||||
description = "A Lua-based 2D game engine/scripting language";
|
||||
license = "zlib";
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||
};
|
||||
}
|
@ -9,8 +9,12 @@ stdenv.mkDerivation rec{
|
||||
sha256="0f3cykihfdn3gi6na9p0xjd4jnv26z18m441n5vyg42q9abh4ln0";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace ldconfig ${stdenv.glibc}/sbin/ldconfig
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
make install PREFIX=$out
|
||||
'';
|
||||
|
||||
|
@ -3209,6 +3209,7 @@ let
|
||||
|
||||
love = callPackage ../development/interpreters/love {lua=lua5;};
|
||||
love_luajit = callPackage ../development/interpreters/love {lua=luajit;};
|
||||
love_0_9 = callPackage ../development/interpreters/love/0.9.nix { };
|
||||
|
||||
lua4 = callPackage ../development/interpreters/lua-4 { };
|
||||
lua5_0 = callPackage ../development/interpreters/lua-5/5.0.3.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user