Merge pull request #182524 from superherointj/fix-nvidia-legacy-390-patch

linuxKernel.packages.linux_5_18.nvidia_x11_legacy390: fix build

authored by superherointj and committed by GitHub b78d6e28 097b07f4

+13
+13
pkgs/os-specific/linux/nvidia-x11/default.nix
··· 68 68 sha256_64bit = "sha256-UibkhCBEz/2Qlt6tr2iTTBM9p04FuAzNISNlhLOvsfw="; 69 69 settingsSha256 = "sha256-teXQa0pQctQl1dvddVJtI7U/vVuMu6ER1Xd99Jprpvw="; 70 70 persistencedSha256 = "sha256-FxiTXYABplKFcBXr4orhYWiJq4zVePpplMbg2kvEuXk="; 71 + patches = 72 + let patch390 = o: 73 + (lib.optional ((lib.versions.majorMinor kernel.modDirVersion) == o.version) (fetchpatch { 74 + inherit (o) sha256; 75 + url = "https://gitlab.com/herecura/packages/nvidia-390xx-dkms/-/raw/herecura/kernel-${o.version}.patch"; 76 + })); 77 + in 78 + [] 79 + ++ (patch390 { 80 + version = "5.18"; 81 + sha256 = "sha256-A6itoozgDWmXKQAU0D8bT2vUaZqh5G5Tg3d3E+CLOTs="; 82 + }) 83 + ; 71 84 }; 72 85 73 86 legacy_340 = generic {