ckb: fix missing modprobe dependency

This commit is contained in:
Nadrieril 2018-01-09 18:58:25 +00:00
parent 3ffb4137d9
commit a3252955d9
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/ckb-daemon/usb_linux.c b/src/ckb-daemon/usb_linux.c
index 8673f86..4714305 100644
--- a/src/ckb-daemon/usb_linux.c
+++ b/src/ckb-daemon/usb_linux.c
@@ -440,7 +440,7 @@ static void udev_enum(){
int usbmain(){
// Load the uinput module (if it's not loaded already)
- if(system("modprobe uinput") != 0)
+ if(system("@kmod@/bin/modprobe uinput") != 0)
ckb_warn("Failed to load uinput module\n");
// Create the udev object

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libudev, pkgconfig, qtbase, qmake, zlib }:
{ stdenv, fetchFromGitHub, substituteAll, libudev, pkgconfig, qtbase, qmake, zlib, kmod }:
stdenv.mkDerivation rec {
version = "0.2.8";
@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
patches = [
./ckb-animations-location.patch
(substituteAll {
name = "ckb-modprobe.patch";
src = ./ckb-modprobe.patch;
inherit kmod;
})
];
doCheck = false;