nixpkgs/pkgs/development/libraries/keybinder/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

47 lines
1.4 KiB
Nix

{ stdenv, fetchurl, autoconf, automake, libtool, pkg-config, gnome3
, gtk-doc, gtk2, python2Packages, lua, gobject-introspection
}:
let
inherit (python2Packages) python pygtk;
in stdenv.mkDerivation rec {
pname = "keybinder";
version = "0.3.0";
src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "https://github.com/engla/keybinder/archive/v${version}.tar.gz";
sha256 = "0kkplz5snycik5xknwq1s8rnmls3qsp32z09mdpmaacydcw7g3cf";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
autoconf automake libtool gnome3.gnome-common gtk-doc gtk2
python pygtk lua gobject-introspection
];
preConfigure = ''
./autogen.sh --prefix="$out"
'';
meta = with stdenv.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 ];
};
}