From 165a6548adfaa4be9d1a9f9cdf53cf4730a1d25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 12 May 2017 10:00:49 +0200 Subject: [PATCH] nvidia_x11_legacy340: fix patch URL to fix #25721 Using fixed-commit URLs and fetchpatch is just more robust. --- pkgs/os-specific/linux/nvidia-x11/generic.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/generic.nix b/pkgs/os-specific/linux/nvidia-x11/generic.nix index 8e3f589c377..a21e6ecfc31 100644 --- a/pkgs/os-specific/linux/nvidia-x11/generic.nix +++ b/pkgs/os-specific/linux/nvidia-x11/generic.nix @@ -8,7 +8,7 @@ , preferGtk2 ? false }: -{ stdenv, callPackage, callPackage_i686, fetchurl +{ stdenv, callPackage, callPackage_i686, fetchurl, fetchpatch , kernel ? null, xorg, zlib, perl, nukeReferences , # Whether to build the libraries only (i.e. not the kernel module or # nvidia-settings). Used to support 32-bit binaries on 64-bit @@ -49,9 +49,10 @@ let then null else if versionOlder version "375" then [ - (fetchurl { - url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/4.10.0_kernel.patch?h=packages/nvidia-340xx; - sha256 = "08k2phr9kawg6a3v88d4zkj7gdlih29gm5a1gmhpgmvd926k0z5l"; + (fetchpatch { + name = "kernel-4.10.patch"; + url = https://git.archlinux.org/svntogit/packages.git/plain/nvidia-340xx/trunk/4.10.0_kernel.patch?id=53fb1df89; + sha256 = "171hb57m968qdjcr3h8ppfzhrchf573f39rdja86a1qq1gmrv7pa"; }) # from https://git.archlinux.org/svntogit/packages.git/plain/trunk/fs52243.patch?h=packages/nvidia-340xx # with datestamps removed