surface6: Replace fetchpatch with fetchurl

This commit is contained in:
PapaTutuWawa 2021-11-04 23:26:57 +01:00
parent 6617feea17
commit f351549a82

View File

@ -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;