about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/netris/default.nix
blob: ff898128ca06e875b6da348042df40f2a520dc21 (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
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchFromGitHub, ncurses }:

stdenv.mkDerivation {
  pname = "netris";
  version = "0.52";

  src = fetchFromGitHub {
    owner = "naclander";
    repo = "netris";
    rev = "6773c9b2d39a70481a5d6eb5368e9ced6229ad2b";
    sha256 = "0gmxbpn50pnffidwjchkzph9rh2jm4wfq7hj8msp5vhdq5h0z9hm";
  };

  buildInputs = [
    ncurses
  ];

  configureScript = "./Configure";
  dontAddPrefix = true;

  installPhase = ''
    mkdir -p $out/bin
    cp ./netris $out/bin
  '';

  meta = with lib; {
    description = "A free networked version of T*tris";
    license = licenses.gpl2;
    maintainers = with maintainers; [ patryk27 ];
    platforms = platforms.linux;
  };
}