@@ -0,0 +1,27 @@
1+{ stdenv, fetchzip, xorg }:
2+stdenv.mkDerivation rec {
3+ name = "xtris-${version}";
4+ version = "1.15";
5+
6+ src = fetchzip {
7+ url = "https://web.archive.org/web/20120315061213/http://www.iagora.com/~espel/xtris/xtris-${version}.tar.gz";
8+ sha256 = "1vqva99lyv7r6f9c7yikk8ahcfh9aq3clvwm4pz964wlbr9mj1v6";
9+ };
10+
11+ patchPhase = ''
12+ sed -i '
13+ s:/usr/local/bin:'$out'/bin:
14+ s:/usr/local/man:'$out'/share/man:
15+ s:mkdir:mkdir -p:g
16+ s:^CFLAGS:#CFLAGS:
17+ ' Makefile
18+ '';
19+ buildInputs = [ xorg.libX11 ];
20+
21+ meta = with stdenv.lib; {
22+ description = "A multi-player version of the classical game of Tetris, for the X Window system";
23+ homepage = https://web.archive.org/web/20120315061213/http://www.iagora.com/~espel/xtris/xtris.html;
24+ license = licenses.gpl2;
25+ platforms = platforms.linux;
26+ };
27+}