Files
nixpkgs/pkgs/development/libraries/keybinder/default.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04: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 = 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 ];
};
}