nixpkgs/pkgs/tools/X11/keynav/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

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