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 let
fetchurl = pkgs.fetchurl; fetchurl = pkgs.fetchurl;
fetchpatch = pkgs.fetchpatch;
commit = "821d8f0685ebad0fa2c05c7080f45eafb28ad08c"; commit = "821d8f0685ebad0fa2c05c7080f45eafb28ad08c";
kernelVersion = "5.14";
mkPatch = name: sha256: { mkPatch = name: sha256: {
name = name; name = name;
patch = fetchpatch { patch = fetchurl {
name = name + ".patch"; inherit sha256;
url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/patches/5.13/${name}.patch";
sha256 = sha256; url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/patches/${kernelVersion}/${name}.patch";
}; };
}; };
cfg = config.ptw.hardware.surface; cfg = config.ptw.hardware.surface;