about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/system/actkbd/default.nix
blob: 61be7e5a4a92e9ef21aa7a3769250377435c4555 (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
32
33
34
35
{ fetchurl, lib, stdenv }:

stdenv.mkDerivation rec {
  pname = "actkbd";
  version = "0.2.8";

  src = fetchurl {
    url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/actkbd-${version}.tar.bz2";
    sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm";
  };

  preConfigure = ''
    substituteInPlace Makefile \
      --replace /usr/local $out \
      --replace /etc $out/etc
  '';

  postInstall = ''
    mkdir -p $out/share/doc/actkbd
    cp -r README samples $out/share/doc/actkbd
  '';

  meta = with lib; {
    description = "A keyboard shortcut daemon";
    longDescription = ''
      actkbd is a simple daemon that binds actions to keyboard events
      directly on evdev interface (that is, no X11 required). It
      recognises key combinations and can handle press, repeat and
      release events.
    '';
    license = licenses.gpl2;
    homepage = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/";
    platforms = platforms.linux;
  };
}