about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/egoboo
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-01-07 02:18:36 +0000
committerAlyssa Ross <hi@alyssa.is>2019-01-07 02:18:47 +0000
commit36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2 (patch)
treeb3faaf573407b32aa645237a4d16b82778a39a92 /nixpkgs/pkgs/games/egoboo
parent4e31070265257dc67d120c27e0f75c2344fdfa9a (diff)
parentabf060725d7614bd3b9f96764262dfbc2f9c2199 (diff)
downloadnixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar
nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.gz
nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.bz2
nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.lz
nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.xz
nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.zst
nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.zip
Add 'nixpkgs/' from commit 'abf060725d7614bd3b9f96764262dfbc2f9c2199'
git-subtree-dir: nixpkgs
git-subtree-mainline: 4e31070265257dc67d120c27e0f75c2344fdfa9a
git-subtree-split: abf060725d7614bd3b9f96764262dfbc2f9c2199
Diffstat (limited to 'nixpkgs/pkgs/games/egoboo')
-rw-r--r--nixpkgs/pkgs/games/egoboo/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/egoboo/default.nix b/nixpkgs/pkgs/games/egoboo/default.nix
new file mode 100644
index 000000000000..29ad352c3168
--- /dev/null
+++ b/nixpkgs/pkgs/games/egoboo/default.nix
@@ -0,0 +1,57 @@
+{ stdenv, fetchurl, libGLU_combined, SDL, SDL_mixer, SDL_image, SDL_ttf }:
+
+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 = ''
+    mkdir -p $out/share/${name}
+    cp -v game/egoboo $out/share/${name}
+    cd ..
+    cp -v -Rd controls.txt setup.txt players modules basicdat $out/share/${name}
+  '';
+
+  buildInputs = [ libGLU_combined SDL SDL_mixer SDL_image SDL_ttf ];
+
+  /*
+    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
+    '';
+  */
+
+  meta = {
+    description = "3D dungeon crawling adventure";
+
+    homepage = http://www.freedink.org/;
+    license = stdenv.lib.licenses.gpl2Plus;
+
+    # 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;
+  };
+}