blob: ea688c23e714bb93e1a4b76095b06155156384cc (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, asciidoc
, libxcb
, xcbutil
, xcbutilkeysyms
, xcbutilwm
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sxhkd";
version = "0.6.2";
src = fetchFromGitHub {
owner = "baskerville";
repo = "sxhkd";
rev = finalAttrs.version;
hash = "sha256-OelMqenk0tiWMLraekS/ggGf6IsXP7Sz7bv75NvnNvI=";
};
patches = [
(fetchpatch {
# Fixes an issue with overlapping chords when using multiple keyboard layouts.
name = "sxhkd-mod5.patch";
url = "https://github.com/baskerville/sxhkd/pull/307/commits/35e64f1d7b54c97ccc02e84e278012dae9bc3941.patch";
hash = "sha256-bvXWEEITbHC/h0nXQx99SXjvkI/KO36XXNSa1O8KSY0=";
})
];
outputs = [ "out" "doc" "man" ];
nativeBuildInputs = [
asciidoc
];
buildInputs = [
libxcb
xcbutil
xcbutilkeysyms
xcbutilwm
];
strictDeps = true;
makeFlags = [ "PREFIX=$(out)" ];
meta = {
description = "Simple X hotkey daemon";
homepage = "https://github.com/baskerville/sxhkd";
license = lib.licenses.bsd2;
mainProgram = "sxhkd";
maintainers = with lib.maintainers; [ vyp AndersonTorres ncfavier ];
inherit (libxcb.meta) platforms;
};
})
|