1{ fetchurl, stdenv }:
2
3stdenv.mkDerivation rec {
4 name = "actkbd-0.2.8";
5
6 src = fetchurl {
7 url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${name}.tar.bz2";
8 sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm";
9 };
10
11 preConfigure = ''
12 substituteInPlace Makefile \
13 --replace /usr/local $out \
14 --replace /etc $out/etc
15 '';
16
17 postInstall = ''
18 mkdir -p $out/share/doc/actkbd
19 cp -r README samples $out/share/doc/actkbd
20 '';
21
22 meta = with stdenv.lib; {
23 description = "A keyboard shortcut daemon";
24 longDescription = ''
25 actkbd is a simple daemon that binds actions to keyboard events
26 directly on evdev interface (that is, no X11 required). It
27 recognises key combinations and can handle press, repeat and
28 release events.
29 '';
30 license = licenses.gpl2;
31 homepage = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/";
32 platforms = platforms.linux;
33 };
34}