summary refs log tree commit diff
path: root/pkgs/games/galaxis/default.nix
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@gmail.com>2017-05-28 15:59:36 -0300
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-05-28 19:59:36 +0100
commit815ad7c549b423ebd324027d886d5e67b56f295e (patch)
tree235b2dcdffd8bdeace628b489399bab1b70fd24b /pkgs/games/galaxis/default.nix
parent132b503aacb7dcc181d12804dee110f68f9f3730 (diff)
downloadnixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.tar
nixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.tar.gz
nixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.tar.bz2
nixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.tar.lz
nixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.tar.xz
nixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.tar.zst
nixpkgs-815ad7c549b423ebd324027d886d5e67b56f295e.zip
Galaxis: init at 1.9 (#26185)
* Galaxis: init at 1.9

* galaxis: nitpicks
Diffstat (limited to 'pkgs/games/galaxis/default.nix')
-rw-r--r--pkgs/games/galaxis/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/games/galaxis/default.nix b/pkgs/games/galaxis/default.nix
new file mode 100644
index 00000000000..c0799e8fdf4
--- /dev/null
+++ b/pkgs/games/galaxis/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchurl, ncurses, xmlto }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec{
+
+  name = "galaxis-${version}";
+  version = "1.9";
+
+  src = fetchurl{
+    url = "http://www.catb.org/~esr/galaxis/${name}.tar.gz";
+    sha256 = "1dsypk5brfbc399pg4fk9myyh5yyln0ljl1aiqkypws8h4nsdphl";
+  };
+
+  buildInputs = [ ncurses xmlto ];
+
+  patchPhase = ''
+    sed -i\
+     -e 's|^install: galaxis\.6 uninstall|install: galaxis.6|'\
+     -e 's|usr/||g' -e 's|ROOT|DESTDIR|g'\
+     -e 's|install -m 755 -o 0 -g 0|install -m 755|' Makefile
+  '';
+
+  dontConfigure = true;
+
+  makeFlags = [ "DESTDIR=$(out)" ];
+
+  meta = {
+    description = "Rescue lifeboats lost in interstellar space";
+    longDescription = ''
+      Lifeboats from a crippled interstellar liner are adrift in a starfield. To
+      find them, you can place probes that look in all eight compass directions
+      and tell you how many lifeboats they see. If you drop a probe directly on
+      a lifeboat it will be revealed immediately. Your objective: find the
+      lifeboats as quickly as possible, before the stranded passengers run out
+      of oxygen!
+
+      This is a UNIX-hosted, curses-based clone of the nifty little Macintosh
+      freeware game Galaxis. It doesn't have the super-simple, point-and-click
+      interface of the original, but compensates by automating away some of the
+      game's simpler deductions.
+    '';
+    homepage = http://catb.org/~esr/galaxis/;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.AndersonTorres ];
+    platforms = platforms.linux;
+  };
+}