bbswitch: add patch to fix Lenovo t440p
This commit is contained in:
parent
e03571aad3
commit
8220246beb
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, kernel }:
|
{ stdenv, fetchurl, fetchpatch, kernel }:
|
||||||
|
|
||||||
let
|
let
|
||||||
baseName = "bbswitch";
|
baseName = "bbswitch";
|
||||||
@ -15,6 +15,11 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
|
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ (fetchpatch {
|
||||||
|
url = "https://github.com/Bumblebee-Project/bbswitch/pull/102.patch";
|
||||||
|
sha256 = "0agq7w28pdarq18qxc9917mamyb2sq8hxl3pzc0v210h60vmx2pm";
|
||||||
|
}) ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
|
--replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user