git.iko.soy/typeable/nixpkgs
on master help sign in
bbswitch: add patch to fix Lenovo t440p
8220246Nikolay Amiantov
pkgs/os-specific/linux/bbswitch/default.nix+6−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, kernel }:
1+{ stdenv, fetchurl, fetchpatch, kernel }:
2
2
3let
3let
4 baseName = "bbswitch";
4 baseName = "bbswitch";
@@ -15,6 +15,11 @@ stdenv.mkDerivation {
15 sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
15 sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
16 };
16 };
17
17
18+ patches = [ (fetchpatch {
19+ url = "https://github.com/Bumblebee-Project/bbswitch/pull/102.patch";
20+ sha256 = "0agq7w28pdarq18qxc9917mamyb2sq8hxl3pzc0v210h60vmx2pm";
21+ }) ];
22+
18 preBuild = ''
23 preBuild = ''
19 substituteInPlace Makefile \
24 substituteInPlace Makefile \
20 --replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
25 --replace "\$(shell uname -r)" "${kernel.modDirVersion}" \