13 stdenv.mkDerivation rec {
18 url = "mirror://sourceforge/klavaro/${pname}-${version}.tar.bz2";
19 hash = "sha256-hxh+SdMBxRDmlkCYzbYSEmvwMNKodf15nq3K0+rlbas=";
22 nativeBuildInputs = [ intltool makeWrapper pkg-config ];
23 buildInputs = [ curl gtk3 gtkdatabox ];
26 substituteInPlace src/tutor.c --replace '"espeak ' '"${espeak}/bin/espeak '
30 wrapProgram $out/bin/klavaro \
31 --prefix LD_LIBRARY_PATH : $out/lib
34 # Fixes /usr/bin/file: No such file or directory
36 substituteInPlace configure \
37 --replace "/usr/bin/file" "${file}/bin/file"
40 # remove forbidden references to $TMPDIR
41 preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
42 for f in "$out"/bin/*; do
44 patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
50 description = "Free touch typing tutor program";
51 mainProgram = "klavaro";
52 homepage = "http://klavaro.sourceforge.net/";
53 changelog = "https://sourceforge.net/p/klavaro/code/HEAD/tree/trunk/ChangeLog";
54 license = licenses.gpl3Plus;
55 platforms = platforms.linux;
56 maintainers = with maintainers; [ mimame davidak ];