2018-12-31 04:40:47 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libX11, xorgproto, libXtst, libXi, libXext
|
2018-11-25 13:24:38 +01:00
|
|
|
, libXinerama, libXrandr, glib, cairo, xdotool }:
|
2007-08-04 15:21:09 +02:00
|
|
|
|
2018-11-25 13:24:38 +01:00
|
|
|
let release = "20180821"; in
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2015-09-13 08:16:42 +02:00
|
|
|
name = "keynav-0.${release}.0";
|
2009-10-28 15:06:56 +01:00
|
|
|
|
2015-09-13 08:16:42 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jordansissel";
|
|
|
|
repo = "keynav";
|
2018-11-25 13:24:38 +01:00
|
|
|
rev = "78f9e076a5618aba43b030fbb9344c415c30c1e5";
|
|
|
|
sha256 = "0hmc14fj612z5h7gjgk95zyqab3p35c4a99snnblzxfg0p3x2f1d";
|
2009-10-28 15:06:56 +01:00
|
|
|
};
|
2007-08-04 15:21:09 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-31 04:40:47 +01:00
|
|
|
buildInputs = [ libX11 xorgproto libXtst libXi libXext libXinerama libXrandr
|
2014-09-26 00:28:42 +02:00
|
|
|
glib cairo xdotool ];
|
2008-03-17 07:28:22 +01:00
|
|
|
|
2015-09-13 08:16:42 +02:00
|
|
|
patchPhase = ''
|
|
|
|
echo >>VERSION MAJOR=0
|
|
|
|
echo >>VERSION RELEASE=${release}
|
|
|
|
echo >>VERSION REVISION=0
|
|
|
|
'';
|
|
|
|
|
2009-10-28 15:06:56 +01:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin $out/share/keynav/doc
|
|
|
|
cp keynav $out/bin
|
|
|
|
cp keynavrc $out/share/keynav/doc
|
|
|
|
'';
|
2007-08-04 15:21:09 +02:00
|
|
|
|
2014-09-26 00:28:42 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Generate X11 mouse clicks from keyboard";
|
2018-06-23 13:34:55 +02:00
|
|
|
homepage = https://www.semicomplete.com/projects/keynav/;
|
2014-09-26 00:28:42 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.linux;
|
2007-08-04 15:21:09 +02:00
|
|
|
};
|
|
|
|
}
|