git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #59192 from ajs124/xtris

xtris: init at 1.15

commitff81390fd393d7489bf82d82e0079bb385f45af4 authorMichael Raskin <7c6f434c@mail.ru> dateTue 9 Apr 2019, 11:15 (8 years ago) parent5d49fc7beb419b
2 files changed+29
pkgs/games/xtris/default.nix+27 pkgs/top-level/all-packages.nix+2
pkgs/games/xtris/default.nixnew file+27
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -21535,6 +21535,8 @@ in
2153521535
2153621536 xsokoban = callPackage ../games/xsokoban { };
2153721537
21538+ xtris = callPackage ../games/xtris { };
21539+
2153821540 inherit (callPackage ../games/quake2/yquake2 { })
2153921541 yquake2
2154021542 yquake2-ctf