Merge pull request #89352 from davidak/klavaro10

klavaro: 3.08 -> 3.10
This commit is contained in:
Maximilian Bosch 2020-06-03 09:35:02 +02:00 committed by GitHub
commit 71adcb757b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,20 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, intltool, curl, gtk3 }: { stdenv
, fetchurl
, makeWrapper
, curl
, file
, gtk3
, intltool
, pkgconfig
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "klavaro"; pname = "klavaro";
version = "3.08"; version = "3.10";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/klavaro/${pname}-${version}.tar.bz2"; url = "mirror://sourceforge/klavaro/${pname}-${version}.tar.bz2";
sha256 = "0qmvr6d8wshwp0xvk5wbig4vlzxzcxrakhyhd32v8v3s18nhqsrc"; sha256 = "0jnzdrndiq6m0bwgid977z5ghp4q61clwdlzfpx4fd2ml5x3iq95";
}; };
nativeBuildInputs = [ intltool makeWrapper pkgconfig ]; nativeBuildInputs = [ intltool makeWrapper pkgconfig ];
@ -17,14 +25,20 @@ stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH : $out/lib --prefix LD_LIBRARY_PATH : $out/lib
''; '';
# Fixes /usr/bin/file: No such file or directory
preConfigure = ''
substituteInPlace configure \
--replace "/usr/bin/file" "${file}/bin/file"
'';
# Hack to avoid TMPDIR in RPATHs. # Hack to avoid TMPDIR in RPATHs.
preFixup = ''rm -rf "$(pwd)" ''; preFixup = ''rm -rf "$(pwd)" '';
meta = { meta = with stdenv.lib; {
description = "Just another free touch typing tutor program"; description = "Free touch typing tutor program";
homepage = "http://klavaro.sourceforge.net/"; homepage = "http://klavaro.sourceforge.net/";
license = stdenv.lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
maintainers = [stdenv.lib.maintainers.mimame]; maintainers = with maintainers; [ mimame davidak ];
}; };
} }