2021-08-02 09:38:14 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libX11
|
|
|
|
, xorgproto
|
|
|
|
, libXtst
|
|
|
|
, libXi
|
|
|
|
, libXext
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, xdotool
|
|
|
|
}:
|
2007-08-04 15:21:09 +02:00
|
|
|
|
2023-02-19 18:04:24 +01:00
|
|
|
let release = "20220825"; in
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2021-07-27 19:35:11 +02:00
|
|
|
pname = "keynav";
|
|
|
|
version = "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";
|
2023-02-19 18:04:24 +01:00
|
|
|
rev = "28a1ba9a045c62a9d2bc5c3474a66d96c8bf5c32";
|
|
|
|
hash = "sha256-y4ONq6fDBFhVGASvz28zlJRXfkCE/j8GDcbq/j8xvUY=";
|
2009-10-28 15:06:56 +01:00
|
|
|
};
|
2007-08-04 15:21:09 +02:00
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-08-02 09:38:14 +02:00
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
xorgproto
|
|
|
|
libXtst
|
|
|
|
libXi
|
|
|
|
libXext
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
xdotool
|
|
|
|
];
|
2008-03-17 07:28:22 +01:00
|
|
|
|
2021-08-02 09:38:14 +02:00
|
|
|
postPatch = ''
|
2015-09-13 08:16:42 +02:00
|
|
|
echo >>VERSION MAJOR=0
|
|
|
|
echo >>VERSION RELEASE=${release}
|
|
|
|
echo >>VERSION REVISION=0
|
|
|
|
'';
|
|
|
|
|
2021-08-02 09:38:14 +02: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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Generate X11 mouse clicks from keyboard";
|
2020-04-01 03:11:51 +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;
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "keynav";
|
2007-08-04 15:21:09 +02:00
|
|
|
};
|
|
|
|
}
|