2021-05-07 21:18:14 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoconf, automake, libtool, pkg-config, gnome
|
2018-12-02 11:41:15 +00:00
|
|
|
, gtk-doc, gtk2, python2Packages, lua, gobject-introspection
|
2014-02-17 19:37:55 +00:00
|
|
|
}:
|
|
|
|
|
2016-09-25 21:55:31 +00:00
|
|
|
let
|
2018-08-06 10:21:05 +00:00
|
|
|
inherit (python2Packages) python pygtk;
|
2016-09-25 21:55:31 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "keybinder";
|
2014-02-17 19:37:55 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
2014-02-17 19:37:55 +00:00
|
|
|
url = "https://github.com/engla/keybinder/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0kkplz5snycik5xknwq1s8rnmls3qsp32z09mdpmaacydcw7g3cf";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-02-17 19:37:55 +00:00
|
|
|
buildInputs = [
|
2021-05-07 21:18:14 +00:00
|
|
|
autoconf automake libtool gnome.gnome-common gtk-doc gtk2
|
2018-12-02 11:41:15 +00:00
|
|
|
python pygtk lua gobject-introspection
|
2014-02-17 19:37:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-02-17 19:37:55 +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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/engla/keybinder/";
|
2014-02-17 19:37:55 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = platforms.linux;
|
2014-02-17 19:37:55 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|