2019-11-10 17:44:34 +01:00
|
|
|
{ stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_ttf }:
|
2010-08-24 21:36:42 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
# pf5234 (a developer?) at freenode #egoboo told me that I better use 2.7.3 until
|
|
|
|
# they fix more, because it even has at least one bugs less than 2.7.4.
|
|
|
|
# 2.8.0 does not start properly on linux
|
|
|
|
# They just starting making that 2.8.0 work on linux.
|
|
|
|
name = "egoboo-2.7.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/egoboo/${name}.tar.gz";
|
|
|
|
sha256 = "18cjgp9kakrsa90jcb4cl8hhh9k57mi5d1sy5ijjpd3p7zl647hd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd source
|
|
|
|
make -C enet all
|
|
|
|
# The target 'all' has trouble
|
|
|
|
make -C game -f Makefile.unix egoboo
|
|
|
|
'';
|
|
|
|
|
|
|
|
# The user will need to have all the files in '.' to run egoboo, with
|
|
|
|
# writeable controls.txt and setup.txt
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/${name}
|
2010-08-24 21:36:42 +02:00
|
|
|
cp -v game/egoboo $out/share/${name}
|
|
|
|
cd ..
|
|
|
|
cp -v -Rd controls.txt setup.txt players modules basicdat $out/share/${name}
|
|
|
|
'';
|
|
|
|
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [ libGLU libGL SDL SDL_mixer SDL_image SDL_ttf ];
|
2010-08-24 21:36:42 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
This big commented thing may be needed for versions 2.8.0 or beyond
|
|
|
|
I keep it here for future updates.
|
|
|
|
|
|
|
|
# Some files have to go to $HOME, but we put them in the 'shared'.
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's,''${HOME}/.''${PROJ_NAME},''${PREFIX}/share/games/''${PROJ_NAME},g' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags=PREFIX=$out
|
|
|
|
'';
|
|
|
|
*/
|
|
|
|
|
2019-10-30 02:29:30 +01:00
|
|
|
NIX_LDFLAGS = "-lm";
|
2019-01-04 20:33:50 +01:00
|
|
|
|
2010-08-24 21:36:42 +02:00
|
|
|
meta = {
|
|
|
|
description = "3D dungeon crawling adventure";
|
|
|
|
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.freedink.org/";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-08-24 21:36:42 +02:00
|
|
|
|
|
|
|
# I take it out of hydra as it does not work as well as I'd like
|
|
|
|
# maintainers = [ stdenv.lib.maintainers.bjg ];
|
|
|
|
# platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|