illum: Prevent segfault when unplugging keyboards
illum segfaults when unplugging keybords, see upstream issue [1]. The upstream PR [2] is still open. [1]: https://github.com/jmesmon/illum/issues/19 [2]: https://github.com/jmesmon/illum/pull/20
This commit is contained in:
parent
020b061a1a
commit
404e681f02
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, ninja, libevdev, libev, udev }:
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, ninja, libevdev, libev, udev }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "illum";
|
||||
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "prevent-unplug-segfault"; # See https://github.com/jmesmon/illum/issues/19
|
||||
url = "https://github.com/jmesmon/illum/commit/47b7cd60ee892379e5d854f79db343a54ae5a3cc.patch";
|
||||
sha256 = "sha256-hIBBCIJXAt8wnZuyKye1RiEfOCelP3+4kcGrM43vFOE=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ ninja libevdev libev udev ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user