3
0
Fork 0
forked from mirrors/nixpkgs

bbswitch: add patch to fix Lenovo t440p

This commit is contained in:
Nikolay Amiantov 2015-04-05 16:12:34 +03:00
parent e03571aad3
commit 8220246beb

View file

@ -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}" \