final: prev: { linuxPackages_latest = prev.linuxPackages_latest.extend (self: super: { nvidiaPackages = super.nvidiaPackages // { stable = super.nvidiaPackages.stable.overrideAttrs (attrs: { patches = [ (prev.fetchpatch { name = "nvidia-kernel-5.7.patch"; url = "https://gitlab.com/snippets/1965550/raw"; sha256 = "03iwxhkajk65phc0h5j7v4gr4fjj6mhxdn04pa57am5qax8i2g9w"; }) ]; passthru = { inherit (super.nvidiaPackages.stable) settings persistenced persistencedVersion settingsVersion; }; }); }; }); }