nvidia_x11_legacy340: patch to support kernel 4.14

/cc #31640.
This commit is contained in:
Vladimír Čunát 2017-11-29 23:24:45 +01:00
parent a43ec91901
commit 6aa3f54f8d
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -2,6 +2,8 @@
let
generic = args: callPackage (import ./generic.nix args) { };
kernel = callPackage # a hacky way of extracting parameters from callPackage
({ kernel, libsOnly ? false }: if libsOnly then { } else kernel) { };
in
{
# Policy: use the highest stable version as the default (on our master).
@ -29,8 +31,15 @@ in
persistencedSha256 = "0zqws2vsrxbxhv6z0nn2galnghcsilcn3s0f70bpm6jqj9wzy7x8";
useGLVND = false;
patches = [
];
patches =
lib.optional (lib.versionOlder "4.14" (kernel.version or "0"))
(fetchurl {
url = "https://raw.githubusercontent.com/MilhouseVH/LibreELEC.tv/b5d2d6a1"
+ "/packages/x11/driver/xf86-video-nvidia-legacy/patches/"
+ "xf86-video-nvidia-legacy-0010-kernel-4.14.patch";
sha256 = "18clfpw03g8dxm61bmdkmccyaxir3gnq451z6xqa2ilm3j820aa5";
})
;
};
legacy_304 = generic {