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