summary refs log tree commit diff
path: root/pkgs/games/pong3d/default.nix
blob: 74e5e50b4e854b645eb404e819b894d10d5664b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{stdenv, fetchurl, libX11}:

stdenv.mkDerivation {
  name = "3dpong-0.5";
  src = fetchurl {
    url = ftp://ftp.tuxpaint.org/unix/x/3dpong/src/3dpong-0.5.tar.gz;
    sha256 = "1ibb79sbzlbn4ra3n0qk22gqr6fg7q0jy6cm0wg2qj4z64c7hmdi";
  };

  buildInputs = [ libX11 ];

  preConfigure = ''
    sed -i s,/usr/local,$out, Makefile
    mkdir -p $out/bin
  '';

  meta = {
    homepage = http://www.newbreedsoftware.com/3dpong/;
    description = "One or two player 3d sports game based on Pong from Atari";
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.linux;
  };
}