2022-01-04 15:37:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, gnome
|
2023-01-05 21:46:04 +00:00
|
|
|
, gtk-doc, gtk2, lua, gobject-introspection
|
2014-02-17 19:37:55 +00:00
|
|
|
}:
|
|
|
|
|
2023-01-05 21:46:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "keybinder";
|
2023-01-05 21:47:28 +00:00
|
|
|
version = "0.3.1";
|
2014-02-17 19:37:55 +00:00
|
|
|
|
2022-01-04 15:37:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "engla";
|
|
|
|
repo = "keybinder";
|
|
|
|
rev = "v${version}";
|
2023-01-05 21:47:28 +00:00
|
|
|
sha256 = "sha256-elL6DZtzCwAtoyGZYP0jAma6tHPks2KAtrziWtBENGU=";
|
2014-02-17 19:37:55 +00:00
|
|
|
};
|
|
|
|
|
2023-06-22 11:49:31 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake gobject-introspection ];
|
2023-01-05 21:46:04 +00:00
|
|
|
|
2014-02-17 19:37:55 +00:00
|
|
|
buildInputs = [
|
2022-03-31 01:11:06 +00:00
|
|
|
libtool gnome.gnome-common gtk-doc gtk2
|
2023-06-22 11:49:31 +00:00
|
|
|
lua
|
2014-02-17 19:37:55 +00:00
|
|
|
];
|
|
|
|
|
2023-01-05 21:46:04 +00:00
|
|
|
configureFlags = [ "--disable-python" ];
|
|
|
|
|
2014-02-17 19:37:55 +00:00
|
|
|
preConfigure = ''
|
2023-01-05 21:46:04 +00:00
|
|
|
./autogen.sh --prefix="$out" $configureFlags
|
2014-02-17 19:37:55 +00:00
|
|
|
'';
|
|
|
|
|
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``
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|