nixgl: preserve __functionArgs when forwarding .override

Forwarding `.override` calls strips the attached metadata, which leads to unexpected behavior in some modules.

Closes #9494
This commit is contained in:
glmlm
2026-06-18 12:01:25 -05:00
committed by Austin Horstman
parent d456f483f1
commit 8af17160d1
+3 -1
View File
@@ -303,7 +303,9 @@ in
# wouldn't know what to do with them. So, we rewrite the override
# function to instead forward the arguments to the package's own
# override function.
override = args: makePackageWrapper vendor environment (pkg.override args);
override = lib.setFunctionArgs (args: makePackageWrapper vendor environment (pkg.override args)) (
lib.functionArgs (pkg.override or (_: { }))
);
};
# Note, if you add/remove/alter attribute names here you need to make a