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