From f351549a824c7ac2c2435eb12e06c9a18acd3e53 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 4 Nov 2021 23:26:57 +0100 Subject: [PATCH] surface6: Replace fetchpatch with fetchurl --- modules/hardware/surface-pro6.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/hardware/surface-pro6.nix b/modules/hardware/surface-pro6.nix index 67500ea..18bf96d 100644 --- a/modules/hardware/surface-pro6.nix +++ b/modules/hardware/surface-pro6.nix @@ -2,14 +2,14 @@ let fetchurl = pkgs.fetchurl; - fetchpatch = pkgs.fetchpatch; commit = "821d8f0685ebad0fa2c05c7080f45eafb28ad08c"; + kernelVersion = "5.14"; mkPatch = name: sha256: { name = name; - patch = fetchpatch { - name = name + ".patch"; - url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/patches/5.13/${name}.patch"; - sha256 = sha256; + patch = fetchurl { + inherit sha256; + + url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/patches/${kernelVersion}/${name}.patch"; }; }; cfg = config.ptw.hardware.surface;