8 stdenv.mkDerivation rec {
11 buildInputs = [ ncurses ];
13 url = "https://typespeed.sourceforge.net/typespeed-${version}.tar.gz";
14 sha256 = "5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961";
17 patches = [ ./typespeed-config-in-home.patch ];
19 # Workaround build failure on -fno-common toolchains like upstream
20 # gcc-10. Otherwise build fails as:
21 # ld: typespeed-typespeed.o:/build/typespeed-0.6.5/src/typespeed.h:69: multiple definition of
22 # `opt'; typespeed-file.o:/build/typespeed-0.6.5/src/typespeed.h:69: first defined here
23 env.NIX_CFLAGS_COMPILE = "-fcommon";
25 configureFlags = [ "--datadir=\${out}/share/" ];
26 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
29 description = "Curses based typing game";
30 mainProgram = "typespeed";
31 homepage = "https://typespeed.sourceforge.net/";
32 license = licenses.gpl2Plus;
33 platforms = platforms.unix;
34 maintainers = [ maintainers.auntie ];