Created
August 24, 2018 21:28
-
-
Save nikki93/855094c9c225f20c9bfcf40747c85e19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with (import <nixpkgs> {}); | |
let | |
pname = "ghost"; | |
version = "0.0.1"; | |
freetype = (import <nixos-unstable> {}).freetype; | |
libcef = (import <nixos-unstable> {}).libcef; | |
in | |
stdenv.mkDerivation rec { | |
name = "${pname}-${version}"; | |
src = ../ghost; | |
nativeBuildInputs = [ cmake ]; | |
buildInputs = [ | |
SDL2 libGLU_combined openal luajit libdevil freetype physfs libmodplug mpg123 | |
libogg libvorbis libtheora openssl libcef | |
]; | |
preConfigure = '' | |
cd love | |
mkdir -p build | |
for i in ${libcef}/share/cef/*; do | |
ln -s $i build/ | |
done | |
''; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp love $out/bin/ghost | |
''; | |
meta = { | |
# TODO(nikki): Fill this in later! | |
#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 ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment