1 {lib, stdenv, fetchurl, makeWrapper, libiconv, ncurses, perl, fortune}:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/gtypist/gtypist-${version}.tar.xz";
9 sha256 = "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1";
12 CFLAGS = "-std=gnu89";
14 nativeBuildInputs = [ makeWrapper ];
15 buildInputs = [ ncurses perl fortune ]
16 ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
19 wrapProgram "$out/bin/typefortune" \
20 --prefix PATH : "${fortune}/bin" \
24 homepage = "https://www.gnu.org/software/gtypist";
25 description = "Universal typing tutor";
26 license = licenses.gpl3Plus;
27 platforms = platforms.linux ++ platforms.darwin;
28 maintainers = with maintainers; [ pSub ];