|
| 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 | +} |
0 commit comments