2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libX11
|
|
|
|
, xorgproto
|
|
|
|
, libXtst
|
|
|
|
, libXi
|
|
|
|
, libXext
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, xdotool
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
let release = "20220825"; in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "keynav";
|
|
|
|
version = "0.${release}.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jordansissel";
|
|
|
|
repo = "keynav";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "28a1ba9a045c62a9d2bc5c3474a66d96c8bf5c32";
|
|
|
|
hash = "sha256-y4ONq6fDBFhVGASvz28zlJRXfkCE/j8GDcbq/j8xvUY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-08-05 21:33:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
xorgproto
|
|
|
|
libXtst
|
|
|
|
libXi
|
|
|
|
libXext
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
xdotool
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
echo >>VERSION MAJOR=0
|
|
|
|
echo >>VERSION RELEASE=${release}
|
|
|
|
echo >>VERSION REVISION=0
|
|
|
|
'';
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/keynav/doc
|
|
|
|
cp keynav $out/bin
|
|
|
|
cp keynavrc $out/share/keynav/doc
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generate X11 mouse clicks from keyboard";
|
|
|
|
homepage = "https://www.semicomplete.com/projects/keynav/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|