mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
5136088b47
The recent upgrade past xkeyboardconfig 2.37 causes an issue where sxhkd will get confused if multiple keyboard layouts are used: https://github.com/baskerville/sxhkd/issues/289
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ 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=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
asciidoc
|
|
];
|
|
|
|
buildInputs = [
|
|
libxcb
|
|
xcbutil
|
|
xcbutilkeysyms
|
|
xcbutilwm
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple X hotkey daemon";
|
|
homepage = "https://github.com/baskerville/sxhkd";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ vyp AndersonTorres ncfavier ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|