about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/typespeed/default.nix
blob: 396e41c4671489e0ee907cd139d4dcb0f5e6a90e (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
{ lib, stdenv, fetchurl, ncurses }:

stdenv.mkDerivation {
  name = "typespeed-0.6.5";
  buildInputs = [ ncurses ];
  src = fetchurl {
    url = "http://typespeed.sourceforge.net/typespeed-0.6.5.tar.gz";
    sha256 = "5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961";
  };

  patches = [ ./typespeed-config-in-home.patch ];

  configureFlags = [ "--datadir=\${out}/share/" ];
  makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];

  meta = with lib; {
    description = "A curses based typing game";
    homepage = "http://typespeed.sourceforge.net/";
    license = licenses.gpl2;
    platforms = platforms.unix;
    maintainers = [ maintainers.auntie ];
  };
}