From f3c691d1e5a74b053ff20a1bc8d459a390bae1cb Mon Sep 17 00:00:00 2001 From: Brian McGillion Date: Wed, 18 Dec 2024 22:40:39 +0400 Subject: [PATCH] Continue the cleanup of addOpenGLRunpath This is a follow on to the patch https://github.com/anduril/jetpack-nixos/commit/6d30a91458f2de2a2987cc0eacbad64aa86da439 which uses the new package name and also the new module option names so that it is aligned with mainline. Signed-off-by: Brian McGillion --- modules/default.nix | 7 ++++--- pkgs/l4t/default.nix | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index 7568df8..e121578 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -221,8 +221,8 @@ in hardware.deviceTree.enable = true; - hardware.opengl.package = pkgs.nvidia-jetpack.l4t-3d-core; - hardware.opengl.extraPackages = + hardware.graphics.package = pkgs.nvidia-jetpack.l4t-3d-core; + hardware.graphics.extraPackages = with pkgs.nvidia-jetpack; # l4t-core provides - among others - libnvrm_gpu.so and libnvrm_mem.so. # The l4t-core/lib directory is directly set in the DT_RUNPATH of @@ -364,6 +364,7 @@ in }; # Used by libEGL_nvidia.so.0 - environment.etc."egl/egl_external_platform.d".source = "${pkgs.addOpenGLRunpath.driverLink}/share/egl/egl_external_platform.d/"; + environment.etc."egl/egl_external_platform.d".source = + "${pkgs.addDriverRunpath.driverLink}/share/egl/egl_external_platform.d/"; }; } diff --git a/pkgs/l4t/default.nix b/pkgs/l4t/default.nix index 02eabd2..a74986e 100644 --- a/pkgs/l4t/default.nix +++ b/pkgs/l4t/default.nix @@ -1,11 +1,9 @@ { stdenv , stdenvNoCC , buildPackages -, addOpenGLRunpath , lib , fetchurl , fetchpatch -, fetchgit , autoPatchelfHook , dpkg , expat