Files
nixpkgs/pkgs/development/libraries/keybinder/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

66 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
libtool,
pkg-config,
gnome-common,
gtk-doc,
gtk2,
lua,
gobject-introspection,
}:
stdenv.mkDerivation rec {
pname = "keybinder";
version = "0.3.1";
src = fetchFromGitHub {
owner = "engla";
repo = "keybinder";
rev = "v${version}";
sha256 = "sha256-elL6DZtzCwAtoyGZYP0jAma6tHPks2KAtrziWtBENGU=";
};
nativeBuildInputs = [
pkg-config
autoconf
automake
gobject-introspection
];
buildInputs = [
libtool
gnome-common
gtk-doc
gtk2
lua
];
configureFlags = [ "--disable-python" ];
preConfigure = ''
./autogen.sh --prefix="$out" $configureFlags
'';
meta = {
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 = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.bjornfor ];
};
}