2016-09-25 21:55:31 +00:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, gnome3
|
2018-02-25 02:23:58 +00:00
|
|
|
, gtk-doc, gtk2, python2Packages, lua, libX11, libXext, libXrender, gobjectIntrospection
|
2014-02-17 19:37:55 +00:00
|
|
|
}:
|
|
|
|
|
2016-09-25 21:55:31 +00:00
|
|
|
let
|
2016-10-17 13:40:35 +00:00
|
|
|
inherit (python2Packages) python pygobject3 pygtk;
|
2016-09-25 21:55:31 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2014-02-17 19:37:55 +00:00
|
|
|
name = "keybinder-${version}";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/engla/keybinder/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0kkplz5snycik5xknwq1s8rnmls3qsp32z09mdpmaacydcw7g3cf";
|
|
|
|
};
|
|
|
|
|
2017-09-14 19:24:37 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-02-17 19:37:55 +00:00
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
autoconf automake libtool gnome3.gnome-common gtk-doc gnome3.gtk3
|
2014-03-14 12:09:05 +00:00
|
|
|
python pygobject3 pygtk lua libX11 libXext libXrender gobjectIntrospection gtk2
|
2014-02-17 19:37:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = platforms.linux;
|
2014-02-17 19:37:55 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|