1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoconf,
6 automake,
7 libtool,
8 pkg-config,
9 gnome-common,
10 gtk-doc,
11 gtk2,
12 lua,
13 gobject-introspection,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "keybinder";
18 version = "0.3.1";
19
20 src = fetchFromGitHub {
21 owner = "engla";
22 repo = "keybinder";
23 rev = "v${version}";
24 sha256 = "sha256-elL6DZtzCwAtoyGZYP0jAma6tHPks2KAtrziWtBENGU=";
25 };
26
27 nativeBuildInputs = [
28 pkg-config
29 autoconf
30 automake
31 gobject-introspection
32 ];
33
34 buildInputs = [
35 libtool
36 gnome-common
37 gtk-doc
38 gtk2
39 lua
40 ];
41
42 configureFlags = [ "--disable-python" ];
43
44 preConfigure = ''
45 ./autogen.sh --prefix="$out" $configureFlags
46 '';
47
48 meta = with lib; {
49 description = "Library for registering global key bindings";
50 longDescription = ''
51 keybinder is a library for registering global keyboard shortcuts.
52 Keybinder works with GTK-based applications using the X Window System.
53
54 The library contains:
55
56 * A C library, ``libkeybinder``
57 * Gobject-Introspection (gir) generated bindings
58 * Lua bindings, ``lua-keybinder``
59 '';
60 homepage = "https://github.com/engla/keybinder/";
61 license = licenses.gpl2Plus;
62 platforms = platforms.linux;
63 maintainers = [ maintainers.bjornfor ];
64 };
65}