From 9d433abc2bb0db5733db0bb15ff531aba3ce6bfa Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Wed, 4 Feb 2026 13:23:51 +0100 Subject: [PATCH] libdrm: Enable tegra for linux platform instead of ARM arch This aligns flag as the rest of SoCs like omap and etnaviv and helps finding headers for development in hosts outside ARM arch --- pkgs/by-name/li/libdrm/package.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/by-name/li/libdrm/package.nix b/pkgs/by-name/li/libdrm/package.nix index 820861c6d643..a1c0497421e8 100644 --- a/pkgs/by-name/li/libdrm/package.nix +++ b/pkgs/by-name/li/libdrm/package.nix @@ -47,9 +47,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonEnable "intel" withIntel) (lib.mesonEnable "omap" stdenv.hostPlatform.isLinux) (lib.mesonEnable "valgrind" withValgrind) - ] - ++ lib.optionals stdenv.hostPlatform.isAarch [ - "-Dtegra=enabled" + (lib.mesonEnable "tegra" stdenv.hostPlatform.isLinux) ] ++ lib.optionals (!stdenv.hostPlatform.isLinux) [ "-Detnaviv=disabled"