2018-12-31 03:40:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xorgproto,
|
2016-11-23 09:30:00 +00:00
|
|
|
libXi }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-15 12:29:39 +00:00
|
|
|
pname = "xcape";
|
2020-01-16 19:09:18 +00:00
|
|
|
version = "unstable-2018-03-01";
|
2016-11-23 09:30:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alols";
|
2019-07-15 12:29:39 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "a34d6bae27bbd55506852f5ed3c27045a3c0bd9e";
|
|
|
|
sha256 = "04grs4w9kpfzz25mqw82zdiy51g0w355gpn5b170p7ha5972ykc8";
|
2013-07-30 11:51:01 +00:00
|
|
|
};
|
2016-11-23 09:30:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [ libX11 libXtst xorgproto libXi ];
|
2016-11-23 09:30:00 +00:00
|
|
|
|
2019-07-15 12:29:39 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"MANDIR=/share/man/man1"
|
|
|
|
];
|
2016-11-23 09:30:00 +00:00
|
|
|
|
2019-07-15 12:29:39 +00:00
|
|
|
postInstall = "install -Dm444 --target-directory $out/share/doc README.md";
|
2016-11-23 09:30:00 +00:00
|
|
|
|
2019-07-15 12:29:39 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-11-23 09:30:00 +00:00
|
|
|
description = "Utility to configure modifier keys to act as other keys";
|
|
|
|
longDescription = ''
|
|
|
|
xcape allows you to use a modifier key as another key when
|
|
|
|
pressed and released on its own. Note that it is slightly
|
|
|
|
slower than pressing the original key, because the pressed event
|
|
|
|
does not occur until the key is released. The default behaviour
|
|
|
|
is to generate the Escape key when Left Control is pressed and
|
|
|
|
released on its own.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/alols/xcape";
|
2019-07-15 12:29:39 +00:00
|
|
|
license = licenses.gpl3 ;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2013-07-30 11:51:01 +00:00
|
|
|
};
|
|
|
|
}
|