2022-01-07 04:07:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk-doc, gtk2, python2Packages, lua, gobject-introspection
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (python2Packages) python pygtk;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "keybinder";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "engla";
|
|
|
|
repo = "keybinder";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-q/+hqhvXIknT+/5oENcWSr1OuF00kaZlXFUP1fdCMlk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-04-03 18:54:34 +00:00
|
|
|
libtool gnome.gnome-common gtk-doc gtk2
|
2020-04-24 23:36:52 +00:00
|
|
|
python pygtk lua gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for registering global key bindings";
|
|
|
|
longDescription = ''
|
|
|
|
keybinder is a library for registering global keyboard shortcuts.
|
|
|
|
Keybinder works with GTK-based applications using the X Window System.
|
|
|
|
|
|
|
|
The library contains:
|
|
|
|
|
|
|
|
* A C library, ``libkeybinder``
|
|
|
|
* Gobject-Introspection (gir) generated bindings
|
|
|
|
* Lua bindings, ``lua-keybinder``
|
|
|
|
* Python bindings, ``python-keybinder``
|
|
|
|
* An ``examples`` directory with programs in C, Lua, Python and Vala.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/engla/keybinder/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|