Merge pull request #20644 from romildo/upd.xcape
xcape: git-2015-03-01 -> 1.2
This commit is contained in:
commit
00597a07bb
|
@ -1,31 +1,42 @@
|
||||||
{stdenv, fetchurl, fetchgit, libX11, xproto, libXtst, xextproto, pkgconfig
|
{ stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xextproto,
|
||||||
, inputproto, libXi}:
|
libXi }:
|
||||||
|
|
||||||
let
|
let
|
||||||
s = rec {
|
baseName = "xcape";
|
||||||
baseName = "xcape";
|
version = "1.2";
|
||||||
version = "git-2015-03-01";
|
|
||||||
name = "${baseName}-${version}";
|
|
||||||
};
|
|
||||||
buildInputs = [
|
|
||||||
libX11 libXtst xproto xextproto pkgconfig inputproto libXi
|
|
||||||
];
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit (s) name version;
|
stdenv.mkDerivation rec {
|
||||||
inherit buildInputs;
|
name = "${baseName}-${version}";
|
||||||
src = fetchgit {
|
|
||||||
url = https://github.com/alols/xcape;
|
src = fetchFromGitHub {
|
||||||
rev = "f3802fc086ce9d961d644a5d29ad5b650db56215";
|
owner = "alols";
|
||||||
sha256 = "0d79riwzmjr621ss3yhxqn2q8chn3f9rvk2nnjckz5yxbifvfg9s";
|
repo = baseName;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm";
|
||||||
};
|
};
|
||||||
preConfigure = ''
|
|
||||||
makeFlags="$makeFlags PREFIX=$out"
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
'';
|
|
||||||
|
buildInputs = [ libX11 libXtst xextproto libXi ];
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=$(out)" "MANDIR=/share/man/man1" ];
|
||||||
|
|
||||||
|
postInstall = "install -D --target-directory $out/share/doc README.md";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (s) version;
|
description = "Utility to configure modifier keys to act as other keys";
|
||||||
description = ''A tool to have Escape and Control on a single key'';
|
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.
|
||||||
|
'';
|
||||||
|
homepage = "https://github.com/alols/xcape";
|
||||||
license = stdenv.lib.licenses.gpl3 ;
|
license = stdenv.lib.licenses.gpl3 ;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue