Merge pull request #188191 from PedroHLC/nvidia-x11-vulkan-beta-515.49.14

nvidia_x11_vulkan_beta: 470.62.13 -> 515.49.14
This commit is contained in:
superherointj 2022-08-25 09:43:01 -03:00 committed by GitHub
commit 42f9bbc6da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 11 deletions

View file

@ -13,6 +13,8 @@ let
kernel = callPackage # a hacky way of extracting parameters from callPackage kernel = callPackage # a hacky way of extracting parameters from callPackage
({ kernel, libsOnly ? false }: if libsOnly then { } else kernel) { }; ({ kernel, libsOnly ? false }: if libsOnly then { } else kernel) { };
kernelModVersion = lib.versions.majorMinor kernel.modDirVersion;
selectHighestVersion = a: b: if lib.versionOlder a.version b.version selectHighestVersion = a: b: if lib.versionOlder a.version b.version
then b then b
else a; else a;
@ -30,6 +32,8 @@ rec {
openSha256 = "sha256-GCCDnaDsbXTmbCYZBCM3fpHmOSWti/DkBJwYrRGAMPI="; openSha256 = "sha256-GCCDnaDsbXTmbCYZBCM3fpHmOSWti/DkBJwYrRGAMPI=";
settingsSha256 = "sha256-kBELMJCIWD9peZba14wfCoxsi3UXO3ehFYcVh4nvzVg="; settingsSha256 = "sha256-kBELMJCIWD9peZba14wfCoxsi3UXO3ehFYcVh4nvzVg=";
persistencedSha256 = "sha256-P8oT7g944HvNk2Ot/0T0sJM7dZs+e0d+KwbwRrmsuDY="; persistencedSha256 = "sha256-P8oT7g944HvNk2Ot/0T0sJM7dZs+e0d+KwbwRrmsuDY=";
brokenOpen = kernelModVersion == "5.4" && kernel.isHardened;
}; };
latest = selectHighestVersion production (generic { latest = selectHighestVersion production (generic {
@ -50,14 +54,16 @@ rec {
# Vulkan developer beta driver # Vulkan developer beta driver
# See here for more information: https://developer.nvidia.com/vulkan-driver # See here for more information: https://developer.nvidia.com/vulkan-driver
vulkan_beta = generic rec { vulkan_beta = generic rec {
version = "470.62.13"; version = "515.49.14";
persistencedVersion = "470.86"; persistencedVersion = "515.48.07";
settingsVersion = "470.86"; settingsVersion = "515.48.07";
sha256_64bit = "sha256-itBFNPMy+Nn0g8V8qdkRb+ELHj57GRso1lXhPHUxKVI="; sha256_64bit = "sha256-xNaqTeIfYQIdCxo841rQ87RQc+br5OhP6K12o4V3I18=";
settingsSha256 = "sha256-fq6RlD6g3uylvvTjE4MmaQwxPJYU0u6IMfpPVzks0tI="; openSha256 = "sha256-4KvOOAR0RQkHTFJkkG32y6uOSHB85Lh6PyVSgRjU1l4=";
persistencedSha256 = "sha256-eHvauvh8Wd+b8DK6B3ZWNjoWGztupWrR8iog9ok58io="; settingsSha256 = "sha256-XwdMsAAu5132x2ZHqjtFvcBJk6Dao7I86UksxrOkknU=";
persistencedSha256 = "sha256-BTfYNDJKe4tOvV71/1JJSPltJua0Mx/RvDcWT5ccRRY=";
url = "https://developer.nvidia.com/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux"; url = "https://developer.nvidia.com/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux";
broken = kernel.kernelAtLeast "5.17";
broken = kernelModVersion == "5.4" && kernel.isHardened;
}; };
# Update note: # Update note:
@ -84,7 +90,7 @@ rec {
patches = patches =
let patch390 = o: let patch390 = o:
(lib.optional ((lib.versions.majorMinor kernel.modDirVersion) == o.version) (fetchpatch { (lib.optional (kernelModVersion == o.version) (fetchpatch {
inherit (o) sha256; inherit (o) sha256;
url = "https://gitlab.com/herecura/packages/nvidia-390xx-dkms/-/raw/herecura/kernel-${o.version}.patch"; url = "https://gitlab.com/herecura/packages/nvidia-390xx-dkms/-/raw/herecura/kernel-${o.version}.patch";
})); }));

View file

@ -15,6 +15,7 @@
, prePatch ? "" , prePatch ? ""
, patches ? [] , patches ? []
, broken ? false , broken ? false
, brokenOpen ? broken
}@args: }@args:
{ lib, stdenv, callPackage, pkgs, pkgsi686Linux, fetchurl { lib, stdenv, callPackage, pkgs, pkgsi686Linux, fetchurl
@ -104,8 +105,9 @@ let
passthru = { passthru = {
open = mapNullable (hash: callPackage ./open.nix { open = mapNullable (hash: callPackage ./open.nix {
inherit hash broken; inherit hash;
nvidia_x11 = self; nvidia_x11 = self;
broken = brokenOpen;
}) openSha256; }) openSha256;
settings = (if settings32Bit then pkgsi686Linux.callPackage else callPackage) (import ./settings.nix self settingsSha256) { settings = (if settings32Bit then pkgsi686Linux.callPackage else callPackage) (import ./settings.nix self settingsSha256) {
withGtk2 = preferGtk2; withGtk2 = preferGtk2;

View file

@ -364,9 +364,12 @@ in {
nvidia_x11_production = nvidiaPackages.production; nvidia_x11_production = nvidiaPackages.production;
nvidia_x11_vulkan_beta = nvidiaPackages.vulkan_beta; nvidia_x11_vulkan_beta = nvidiaPackages.vulkan_beta;
# this is not a replacement for nvidia_x11 # this is not a replacement for nvidia_x11*
# only the opensource kernel driver exposed for hydra to build # only the opensource kernel driver exposed for hydra to build
nvidia_x11_beta_open = nvidiaPackages.beta.open; nvidia_x11_beta_open = nvidiaPackages.beta.open;
nvidia_x11_production_open = nvidiaPackages.production.open;
nvidia_x11_stable_open = nvidiaPackages.stable.open;
nvidia_x11_vulkan_beta_open = nvidiaPackages.vulkan_beta.open;
openrazer = callPackage ../os-specific/linux/openrazer/driver.nix { }; openrazer = callPackage ../os-specific/linux/openrazer/driver.nix { };