2015-09-13 08:16:42 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libX11, xextproto, libXtst, libXi, libXext
|
2014-09-26 00:28:42 +02:00
|
|
|
, libXinerama, glib, cairo, xdotool }:
|
2007-08-04 15:21:09 +02:00
|
|
|
|
2015-09-13 08:16:42 +02:00
|
|
|
let release = "20150730"; in
|
2009-10-28 15:06:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
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";
|
|
|
|
rev = "4ae486db6697877e84b66583a0502afc7301ba16";
|
|
|
|
sha256 = "0v1m8w877fcrk918p6b6q3753dsz8i1f4mb9bi064cp11kh85nq5";
|
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 ];
|
|
|
|
buildInputs = [ libX11 xextproto libXtst libXi libXext libXinerama
|
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";
|
2014-09-26 00:28:42 +02:00
|
|
|
homepage = http://www.semicomplete.com/projects/keynav/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.linux;
|
2007-08-04 15:21:09 +02:00
|
|
|
};
|
|
|
|
}
|