Skip to content

Commit 165a654

Browse files
committedMay 12, 2017
nvidia_x11_legacy340: fix patch URL to fix #25721
Using fixed-commit URLs and fetchpatch is just more robust.
1 parent 890fd54 commit 165a654

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎pkgs/os-specific/linux/nvidia-x11/generic.nix

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
, preferGtk2 ? false
99
}:
1010

11-
{ stdenv, callPackage, callPackage_i686, fetchurl
11+
{ stdenv, callPackage, callPackage_i686, fetchurl, fetchpatch
1212
, kernel ? null, xorg, zlib, perl, nukeReferences
1313
, # Whether to build the libraries only (i.e. not the kernel module or
1414
# nvidia-settings). Used to support 32-bit binaries on 64-bit
@@ -49,9 +49,10 @@ let
4949
then null
5050
else if versionOlder version "375"
5151
then [
52-
(fetchurl {
53-
url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/4.10.0_kernel.patch?h=packages/nvidia-340xx;
54-
sha256 = "08k2phr9kawg6a3v88d4zkj7gdlih29gm5a1gmhpgmvd926k0z5l";
52+
(fetchpatch {
53+
name = "kernel-4.10.patch";
54+
url = https://git.archlinux.org/svntogit/packages.git/plain/nvidia-340xx/trunk/4.10.0_kernel.patch?id=53fb1df89;
55+
sha256 = "171hb57m968qdjcr3h8ppfzhrchf573f39rdja86a1qq1gmrv7pa";
5556
})
5657
# from https://git.archlinux.org/svntogit/packages.git/plain/trunk/fs52243.patch?h=packages/nvidia-340xx
5758
# with datestamps removed

0 commit comments

Comments
 (0)