2020-06-02 15:57:37 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, curl
|
|
|
|
, file
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
2012-07-02 16:37:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "klavaro";
|
2020-08-26 08:50:00 +02:00
|
|
|
version = "3.11";
|
2012-07-02 16:37:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/klavaro/${pname}-${version}.tar.bz2";
|
2020-08-26 08:50:00 +02:00
|
|
|
sha256 = "1rkxaqb62w4mv86fcnmr32lq6y0h4hh92wmsy5ddb9a8jnzx6r7w";
|
2012-07-02 16:37:17 +02:00
|
|
|
};
|
|
|
|
|
2019-04-24 01:04:17 +02:00
|
|
|
nativeBuildInputs = [ intltool makeWrapper pkgconfig ];
|
|
|
|
buildInputs = [ curl gtk3 ];
|
2014-11-08 17:12:37 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/klavaro \
|
|
|
|
--prefix LD_LIBRARY_PATH : $out/lib
|
|
|
|
'';
|
2012-07-02 16:37:17 +02:00
|
|
|
|
2020-06-02 15:57:37 +02:00
|
|
|
# Fixes /usr/bin/file: No such file or directory
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace "/usr/bin/file" "${file}/bin/file"
|
|
|
|
'';
|
|
|
|
|
2017-05-16 16:35:52 +02:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
|
|
preFixup = ''rm -rf "$(pwd)" '';
|
|
|
|
|
2020-06-02 15:57:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Free touch typing tutor program";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://klavaro.sourceforge.net/";
|
2020-08-26 15:37:04 +02:00
|
|
|
changelog = "https://sourceforge.net/p/klavaro/code/HEAD/tree/trunk/ChangeLog";
|
2020-06-02 15:57:37 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mimame davidak ];
|
2012-07-02 16:37:17 +02:00
|
|
|
};
|
|
|
|
}
|