summary refs log tree commit diff
path: root/pkgs/development/libraries/keybinder3/default.nix
blob: 78755a87919d73288b42a28610449a86b489e4d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, gnome
, gtk-doc, gtk3, libX11, libXext, libXrender, gobject-introspection
}:

stdenv.mkDerivation rec {
  pname = "keybinder3";
  version = "0.3.2";

  src = fetchFromGitHub {
    owner = "kupferlauncher";
    repo = "keybinder";
    rev = "keybinder-3.0-v${version}";
    sha256 = "196ibn86j54fywfwwgyh89i9wygm4vh7ls19fn20vrnm6ijlzh9r";
  };

  nativeBuildInputs = [ autoconf automake libtool pkg-config ];
  buildInputs = [
    gnome.gnome-common gtk-doc gtk3
    libX11 libXext libXrender gobject-introspection
  ];

  preConfigure = ''
    ./autogen.sh --prefix="$out"
  '';

  meta = with lib; {
    description = "Library for registering global key bindings";
    homepage = "https://github.com/kupferlauncher/keybinder/";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = [ maintainers.cstrahan ];
  };
}