1 { lib, stdenv, fetchurl, ncurses }:
3 stdenv.mkDerivation rec {
6 buildInputs = [ ncurses ];
8 url = "http://typespeed.sourceforge.net/typespeed-${version}.tar.gz";
9 sha256 = "5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961";
12 patches = [ ./typespeed-config-in-home.patch ];
14 # Workaround build failure on -fno-common toolchains like upstream
15 # gcc-10. Otherwise build fails as:
16 # ld: typespeed-typespeed.o:/build/typespeed-0.6.5/src/typespeed.h:69: multiple definition of
17 # `opt'; typespeed-file.o:/build/typespeed-0.6.5/src/typespeed.h:69: first defined here
18 NIX_CFLAGS_COMPILE = "-fcommon";
20 configureFlags = [ "--datadir=\${out}/share/" ];
21 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
24 description = "A curses based typing game";
25 homepage = "http://typespeed.sourceforge.net/";
26 license = licenses.gpl2;
27 platforms = platforms.unix;
28 maintainers = [ maintainers.auntie ];