mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
bbswitch: add patch to fix Lenovo t440p
This commit is contained in:
parent
e03571aad3
commit
8220246beb
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, kernel }:
|
||||
{ stdenv, fetchurl, fetchpatch, kernel }:
|
||||
|
||||
let
|
||||
baseName = "bbswitch";
|
||||
|
@ -15,6 +15,11 @@ stdenv.mkDerivation {
|
|||
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
|
||||
};
|
||||
|
||||
patches = [ (fetchpatch {
|
||||
url = "https://github.com/Bumblebee-Project/bbswitch/pull/102.patch";
|
||||
sha256 = "0agq7w28pdarq18qxc9917mamyb2sq8hxl3pzc0v210h60vmx2pm";
|
||||
}) ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
|
||||
|
|
Loading…
Reference in a new issue