diff options
| author | superherointj <5861043+superherointj@users.noreply.github.com> | 2022-07-22 22:24:19 -0300 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-07-25 15:36:29 +0000 |
| commit | 1ff0ba14f1c555ca3ca77cce549b355afe0921de (patch) | |
| tree | e50ff68634edb6f17c99fd9e1786e6be94bab056 | |
| parent | nixos/jenkins-job-builder: set serviceConfig.Type = "oneshot" (diff) | |
| download | nixpkgs-origin/backport-182524-to-release-22.05.tar.gz | |
linuxKernel.packages.linux_5_18.nvidia_x11_legacy390: fix buildorigin/backport-182524-to-release-22.05
Co-authored-by: @PedroHLC
(cherry picked from commit 1319b5a2449698f0ba9ffc5282fbd39e48016b9d)
| -rw-r--r-- | pkgs/os-specific/linux/nvidia-x11/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/nvidia-x11/default.nix b/pkgs/os-specific/linux/nvidia-x11/default.nix index 8e7b3cfa6c8e..4d324fb8d63d 100644 --- a/pkgs/os-specific/linux/nvidia-x11/default.nix +++ b/pkgs/os-specific/linux/nvidia-x11/default.nix @@ -67,6 +67,19 @@ rec { sha256_64bit = "sha256-UibkhCBEz/2Qlt6tr2iTTBM9p04FuAzNISNlhLOvsfw="; settingsSha256 = "sha256-teXQa0pQctQl1dvddVJtI7U/vVuMu6ER1Xd99Jprpvw="; persistencedSha256 = "sha256-FxiTXYABplKFcBXr4orhYWiJq4zVePpplMbg2kvEuXk="; + patches = + let patch390 = o: + (lib.optional ((lib.versions.majorMinor kernel.modDirVersion) == o.version) (fetchpatch { + inherit (o) sha256; + url = "https://gitlab.com/herecura/packages/nvidia-390xx-dkms/-/raw/herecura/kernel-${o.version}.patch"; + })); + in + [] + ++ (patch390 { + version = "5.18"; + sha256 = "sha256-A6itoozgDWmXKQAU0D8bT2vUaZqh5G5Tg3d3E+CLOTs="; + }) + ; }; legacy_340 = generic { |
