libvdpau: move NIX_LDFLAGS into env for structuredAttrs (#486068)

This commit is contained in:
Wolfgang Walther
2026-02-03 10:27:10 +00:00
committed by GitHub
+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.