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