diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/keybinder')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/keybinder/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/keybinder/default.nix b/nixpkgs/pkgs/development/libraries/keybinder/default.nix new file mode 100644 index 000000000000..ee1b4fb8ce8a --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/keybinder/default.nix @@ -0,0 +1,47 @@ +{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, gnome +, gtk-doc, gtk2, python2Packages, lua, gobject-introspection +}: + +let + inherit (python2Packages) python pygtk; +in stdenv.mkDerivation rec { + pname = "keybinder"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "engla"; + repo = "keybinder"; + rev = "v${version}"; + sha256 = "sha256-q/+hqhvXIknT+/5oENcWSr1OuF00kaZlXFUP1fdCMlk="; + }; + + nativeBuildInputs = [ pkg-config autoconf automake ]; + buildInputs = [ + libtool gnome.gnome-common gtk-doc gtk2 + python pygtk lua gobject-introspection + ]; + + preConfigure = '' + ./autogen.sh --prefix="$out" + ''; + + meta = with 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; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} |