Skip to content

Commit 815ad7c

Browse files
AndersonTorresMic92
authored andcommittedMay 28, 2017
Galaxis: init at 1.9 (#26185)
* Galaxis: init at 1.9 * galaxis: nitpicks
1 parent 132b503 commit 815ad7c

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
 

‎pkgs/games/galaxis/default.nix

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{ stdenv, fetchurl, ncurses, xmlto }:
2+
3+
with stdenv.lib;
4+
stdenv.mkDerivation rec{
5+
6+
name = "galaxis-${version}";
7+
version = "1.9";
8+
9+
src = fetchurl{
10+
url = "http://www.catb.org/~esr/galaxis/${name}.tar.gz";
11+
sha256 = "1dsypk5brfbc399pg4fk9myyh5yyln0ljl1aiqkypws8h4nsdphl";
12+
};
13+
14+
buildInputs = [ ncurses xmlto ];
15+
16+
patchPhase = ''
17+
sed -i\
18+
-e 's|^install: galaxis\.6 uninstall|install: galaxis.6|'\
19+
-e 's|usr/||g' -e 's|ROOT|DESTDIR|g'\
20+
-e 's|install -m 755 -o 0 -g 0|install -m 755|' Makefile
21+
'';
22+
23+
dontConfigure = true;
24+
25+
makeFlags = [ "DESTDIR=$(out)" ];
26+
27+
meta = {
28+
description = "Rescue lifeboats lost in interstellar space";
29+
longDescription = ''
30+
Lifeboats from a crippled interstellar liner are adrift in a starfield. To
31+
find them, you can place probes that look in all eight compass directions
32+
and tell you how many lifeboats they see. If you drop a probe directly on
33+
a lifeboat it will be revealed immediately. Your objective: find the
34+
lifeboats as quickly as possible, before the stranded passengers run out
35+
of oxygen!
36+
37+
This is a UNIX-hosted, curses-based clone of the nifty little Macintosh
38+
freeware game Galaxis. It doesn't have the super-simple, point-and-click
39+
interface of the original, but compensates by automating away some of the
40+
game's simpler deductions.
41+
'';
42+
homepage = http://catb.org/~esr/galaxis/;
43+
license = licenses.gpl2;
44+
maintainers = [ maintainers.AndersonTorres ];
45+
platforms = platforms.linux;
46+
};
47+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -16936,6 +16936,8 @@ with pkgs;
1693616936
wxGTK = wxGTK28.override { unicode = false; };
1693716937
};
1693816938

16939+
galaxis = callPackage ../games/galaxis { };
16940+
1693916941
gambatte = callPackage ../games/gambatte { };
1694016942

1694116943
garden-of-coloured-lights = callPackage ../games/garden-of-coloured-lights { allegro = allegro4; };

0 commit comments

Comments
 (0)
Please sign in to comment.