2018-11-03 18:50:12 +00:00
|
|
|
{ lib, callPackage, fetchpatch, fetchurl, stdenv, pkgsi686Linux }:
|
2014-12-23 23:01:04 +00:00
|
|
|
|
|
|
|
let
|
2018-11-03 18:50:12 +00:00
|
|
|
generic = args: let
|
|
|
|
imported = import ./generic.nix args;
|
2022-05-12 06:09:32 +00:00
|
|
|
in callPackage imported {
|
2018-11-03 18:50:12 +00:00
|
|
|
lib32 = (pkgsi686Linux.callPackage imported {
|
|
|
|
libsOnly = true;
|
|
|
|
kernel = null;
|
|
|
|
}).out;
|
|
|
|
};
|
|
|
|
|
2017-11-29 22:24:45 +00:00
|
|
|
kernel = callPackage # a hacky way of extracting parameters from callPackage
|
|
|
|
({ kernel, libsOnly ? false }: if libsOnly then { } else kernel) { };
|
2014-12-23 23:01:04 +00:00
|
|
|
in
|
2018-02-08 18:55:28 +00:00
|
|
|
rec {
|
2017-01-29 21:29:39 +00:00
|
|
|
# Policy: use the highest stable version as the default (on our master).
|
2019-12-01 03:28:08 +00:00
|
|
|
stable = if stdenv.hostPlatform.system == "x86_64-linux"
|
|
|
|
then generic {
|
2022-06-29 12:45:31 +00:00
|
|
|
version = "515.57";
|
|
|
|
sha256_64bit = "sha256-hB1p/hQmiDZHESuwcP4vKaH4ScZKyAqNYccJcNjT1SI=";
|
|
|
|
openSha256 = "sha256-D8fXlmuGEHkFAT2aSAj7hXpndi2bfOd6vQAcKfsQx4U=";
|
|
|
|
settingsSha256 = "sha256-M9AVeMsHSQv+zhIdBtXm+QRXf7NcZpLfCDmKMUjBl1U=";
|
|
|
|
persistencedSha256 = "sha256-joKUuP4PgQxu4kOxy8SkHORPkEmuYfk3b+7svAyMQ1Q=";
|
2019-12-01 03:28:08 +00:00
|
|
|
}
|
|
|
|
else legacy_390;
|
2018-10-16 22:54:52 +00:00
|
|
|
|
2021-11-22 06:51:55 +00:00
|
|
|
# see https://www.nvidia.com/en-us/drivers/unix/ "Production branch"
|
2022-05-21 10:05:01 +00:00
|
|
|
production = stable;
|
2021-11-22 06:51:55 +00:00
|
|
|
|
2020-12-18 10:37:08 +00:00
|
|
|
beta = generic {
|
2022-05-21 10:05:01 +00:00
|
|
|
version = "515.43.04";
|
|
|
|
sha256_64bit = "sha256-PodaTTUOSyMW8rtdtabIkSLskgzAymQyfToNlwxPPcc=";
|
2022-05-12 06:09:32 +00:00
|
|
|
openSha256 = "sha256-1bAr5dWZ4jnY3Uo2JaEz/rhw2HuW9LZ5bACmA1VG068=";
|
2022-05-21 10:05:01 +00:00
|
|
|
settingsSha256 = "sha256-j47LtP6FNTPfiXFh9KwXX8vZOQzlytA30ZfW9N5F2PY=";
|
|
|
|
persistencedSha256 = "sha256-hULBy0wnVpLH8I0L6O9/HfgvJURtE2whpXOgN/vb3Wo=";
|
2020-12-18 10:37:08 +00:00
|
|
|
};
|
2018-10-16 22:54:52 +00:00
|
|
|
|
2020-09-24 14:53:05 +00:00
|
|
|
# Vulkan developer beta driver
|
2020-11-21 05:21:37 +00:00
|
|
|
# See here for more information: https://developer.nvidia.com/vulkan-driver
|
|
|
|
vulkan_beta = generic rec {
|
2021-12-02 13:15:47 +00:00
|
|
|
version = "470.62.13";
|
|
|
|
persistencedVersion = "470.86";
|
|
|
|
settingsVersion = "470.86";
|
|
|
|
sha256_64bit = "sha256-itBFNPMy+Nn0g8V8qdkRb+ELHj57GRso1lXhPHUxKVI=";
|
|
|
|
settingsSha256 = "sha256-fq6RlD6g3uylvvTjE4MmaQwxPJYU0u6IMfpPVzks0tI=";
|
|
|
|
persistencedSha256 = "sha256-eHvauvh8Wd+b8DK6B3ZWNjoWGztupWrR8iog9ok58io=";
|
2020-11-21 05:21:37 +00:00
|
|
|
url = "https://developer.nvidia.com/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux";
|
2022-05-14 11:34:52 +00:00
|
|
|
broken = kernel.kernelAtLeast "5.17";
|
2020-09-24 14:53:05 +00:00
|
|
|
};
|
|
|
|
|
2021-11-07 23:38:44 +00:00
|
|
|
# Update note:
|
|
|
|
# If you add a legacy driver here, also update `top-level/linux-kernels.nix`,
|
|
|
|
# adding to the `nvidia_x11_legacy*` entries.
|
|
|
|
|
2021-10-22 19:30:51 +00:00
|
|
|
# Last one supporting Kepler architecture
|
|
|
|
legacy_470 = generic {
|
2022-05-21 10:05:01 +00:00
|
|
|
version = "470.129.06";
|
|
|
|
sha256_64bit = "sha256-QQkQtwBuFzBjMnaDKfS1PW+ekcxVXCiJkXWOKo8IqZg=";
|
|
|
|
settingsSha256 = "sha256-vUS4O/c4IrbC8offzUFGLlMdP/Tlz1GwQIV2geRfj/o=";
|
|
|
|
persistencedSha256 = "sha256-jCcYUsbhQ77IOQquXqbTZfh1N0IvKQOWrIMU9rEwSW0=";
|
2021-10-22 19:30:51 +00:00
|
|
|
};
|
|
|
|
|
2018-10-16 22:54:52 +00:00
|
|
|
# Last one supporting x86
|
2018-11-30 18:50:47 +00:00
|
|
|
legacy_390 = generic {
|
2022-05-21 10:05:01 +00:00
|
|
|
version = "390.151";
|
|
|
|
sha256_32bit = "sha256-lOOZtFllnBKxNE6Mj09e7h7VkV/0WfyLuDHJ4dRGd9s=";
|
|
|
|
sha256_64bit = "sha256-UibkhCBEz/2Qlt6tr2iTTBM9p04FuAzNISNlhLOvsfw=";
|
|
|
|
settingsSha256 = "sha256-teXQa0pQctQl1dvddVJtI7U/vVuMu6ER1Xd99Jprpvw=";
|
|
|
|
persistencedSha256 = "sha256-FxiTXYABplKFcBXr4orhYWiJq4zVePpplMbg2kvEuXk=";
|
2017-01-29 21:29:39 +00:00
|
|
|
};
|
2014-12-23 23:01:04 +00:00
|
|
|
|
2017-01-29 21:29:39 +00:00
|
|
|
legacy_340 = generic {
|
2020-06-24 15:11:24 +00:00
|
|
|
version = "340.108";
|
|
|
|
sha256_32bit = "1jkwa1phf0x4sgw8pvr9d6krmmr3wkgwyygrxhdazwyr2bbalci0";
|
|
|
|
sha256_64bit = "06xp6c0sa7v1b82gf0pq0i5p0vdhmm3v964v0ypw36y0nzqx8wf6";
|
|
|
|
settingsSha256 = "0zm29jcf0mp1nykcravnzb5isypm8l8mg2gpsvwxipb7nk1ivy34";
|
|
|
|
persistencedSha256 = "1ax4xn3nmxg1y6immq933cqzw6cj04x93saiasdc0kjlv0pvvnkn";
|
2017-01-29 21:29:39 +00:00
|
|
|
useGLVND = false;
|
2017-05-31 13:52:03 +00:00
|
|
|
|
2022-03-29 22:07:13 +00:00
|
|
|
broken = kernel.kernelAtLeast "5.5";
|
2018-12-03 15:14:16 +00:00
|
|
|
patches = [ ./vm_operations_struct-fault.patch ];
|
2017-01-29 21:29:39 +00:00
|
|
|
};
|
2014-12-23 23:01:04 +00:00
|
|
|
}
|