diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2013-07-30 15:51:01 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2013-07-30 15:51:01 +0400 |
commit | 9acc0d4bc903a931ec1b01c9422d9941f9b60879 (patch) | |
tree | b5ab66848b8dfef3079ec43d4b38587621bac4b3 /pkgs | |
parent | 97b8ac932d480f37104b0cc90efdeb5b1bb26cc2 (diff) |
Adding x-cape keyboard mapping helper
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/X11/xcape/default.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xcape/default.nix b/pkgs/tools/X11/xcape/default.nix new file mode 100644 index 0000000000000..adeec32b17cdc --- /dev/null +++ b/pkgs/tools/X11/xcape/default.nix @@ -0,0 +1,32 @@ +{stdenv, fetchurl, fetchgit, libX11, xproto, libXtst, xextproto, pkgconfig +, inputproto, libXi}: +let + s = rec { + baseName = "xcape"; + version = "git-2013-05-30"; + name = "${baseName}-${version}"; + }; + buildInputs = [ + libX11 libXtst xproto xextproto pkgconfig inputproto libXi + ]; +in +stdenv.mkDerivation { + inherit (s) name version; + inherit buildInputs; + src = fetchgit { + url = https://github.com/alols/xcape; + rev = "39aa08c5da354a8fe495eba8787a01957cfa5fcb"; + sha256 = "1yh0vbaj4c5lflxm3d4xrfaric1lp0gfcyzq33bqphpsba439bmg"; + }; + preConfigure = '' + makeFlags="$makeFlags PREFIX=$out" + ''; + meta = { + inherit (s) version; + description = ''A tool to have Escape and Control on a single key''; + license = stdenv.lib.licenses.gpl3 ; + inherit (s) url sha256; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2a4dab0f31844..fb88748c15744 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8745,6 +8745,8 @@ let xcalib = callPackage ../tools/X11/xcalib { }; + xcape = callPackage ../tools/X11/xcape { }; + xchainkeys = callPackage ../tools/X11/xchainkeys { }; xchat = callPackage ../applications/networking/irc/xchat { }; |