git.iko.soy/typeable/nixpkgs
on master help sign in
bbswitch: add patch to fix Lenovo t440p
commit8220246beb4f100de5904762761d9fdf6b5ae4c8 authorNikolay Amiantov <ab@fmap.me> dateSun 5 Apr 2015, 16:12 (12 years ago) parente03571a
1 file changed+6−1
pkgs/os-specific/linux/bbswitch/default.nix+6−1
pkgs/os-specific/linux/bbswitch/default.nix+6−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, kernel }:
1+{ stdenv, fetchurl, fetchpatch, kernel }:
22
33let
44 baseName = "bbswitch";
@@ -15,6 +15,11 @@ stdenv.mkDerivation {
1515 sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
1616 };
1717
18+ patches = [ (fetchpatch {
19+ url = "https://github.com/Bumblebee-Project/bbswitch/pull/102.patch";
20+ sha256 = "0agq7w28pdarq18qxc9917mamyb2sq8hxl3pzc0v210h60vmx2pm";
21+ }) ];
22+
1823 preBuild = ''
1924 substituteInPlace Makefile \
2025 --replace "\$(shell uname -r)" "${kernel.modDirVersion}" \