summary refs log tree commit diff
path: root/pkgs/tools/X11/xcape/default.nix
blob: 35d353d9861bde143ef49a28c27e572bac72b804 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{stdenv, fetchurl, fetchgit, libX11, xproto, libXtst, xextproto, pkgconfig
, inputproto, libXi}:
let
  s = rec {
    baseName = "xcape";
    version = "git-2015-03-01";
    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 = "f3802fc086ce9d961d644a5d29ad5b650db56215";
    sha256 = "05mm4ap69ncwl4hhzf2dvbazqxjf27477cd3chpfc7qi7srqasvz";
  };
  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 ;
    maintainers = [stdenv.lib.maintainers.raskin];
    platforms = stdenv.lib.platforms.linux;
  };
}