1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoconf,
6 automake,
7 libtool,
8 pkg-config,
9 gnome-common,
10 gtk-doc,
11 gtk3,
12 libX11,
13 libXext,
14 libXrender,
15 gobject-introspection,
16}:
17
18stdenv.mkDerivation rec {
19 pname = "keybinder3";
20 version = "0.3.2";
21
22 src = fetchFromGitHub {
23 owner = "kupferlauncher";
24 repo = "keybinder";
25 rev = "keybinder-3.0-v${version}";
26 sha256 = "196ibn86j54fywfwwgyh89i9wygm4vh7ls19fn20vrnm6ijlzh9r";
27 };
28
29 strictDeps = true;
30 nativeBuildInputs = [
31 autoconf
32 automake
33 libtool
34 pkg-config
35 gnome-common
36 gtk-doc
37 gobject-introspection
38 ];
39 buildInputs = [
40 gtk3
41 libX11
42 libXext
43 libXrender
44 ];
45
46 preConfigure = ''
47 # NOCONFIGURE fixes 'If you meant to cross compile, use `--host'.'
48 NOCONFIGURE=1 ./autogen.sh --prefix="$out"
49 substituteInPlace ./configure \
50 --replace "dummy pkg-config" 'dummy ''${ac_tool_prefix}pkg-config'
51 '';
52
53 meta = with lib; {
54 description = "Library for registering global key bindings";
55 homepage = "https://github.com/kupferlauncher/keybinder/";
56 license = licenses.mit;
57 platforms = platforms.unix;
58 maintainers = [ ];
59 };
60}