sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / games / xtris / default.nix
blob2263a46187e9469cfb314183420ddae981c50590
1 { lib, stdenv, fetchzip, xorg }:
2 stdenv.mkDerivation rec {
3   pname = "xtris";
4   version = "1.15";
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   };
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 ];
21   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
23   meta = with lib; {
24     description = "A multi-player version of the classical game of Tetris, for the X Window system";
25     homepage = "https://web.archive.org/web/20120315061213/http://www.iagora.com/~espel/xtris/xtris.html";
26     license = licenses.gpl2;
27     platforms = platforms.unix;
28   };