libvdpau: move NIX_LDFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-01 23:32:23 +01:00
parent b1334654cc
commit f3d2d37e12
+3 -1
View File
@@ -42,7 +42,9 @@ stdenv.mkDerivation rec {
"-Dmoduledir=${mesa.driverLink}/lib/vdpau"
];
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-lX11";
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-lX11";
};
# The tracing library in this package must be conditionally loaded with dlopen().
# Therefore, we must restore the RPATH entry for the library itself that was removed by the patchelf hook.