nixpkgs/pkgs/development/libraries/keybinder/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
Nix
Raw Normal View History

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
}:
2023-01-05 21:46:04 +00:00
stdenv.mkDerivation rec {
pname = "keybinder";
2023-01-05 21:47:28 +00:00
version = "0.3.1";
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=";
};
nativeBuildInputs = [ pkg-config autoconf automake gobject-introspection ];
2023-01-05 21:46:04 +00:00
buildInputs = [
libtool gnome.gnome-common gtk-doc gtk2
lua
];
2023-01-05 21:46:04 +00:00
configureFlags = [ "--disable-python" ];
preConfigure = ''
2023-01-05 21:46:04 +00:00
./autogen.sh --prefix="$out" $configureFlags
'';
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``
'';
homepage = "https://github.com/engla/keybinder/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}