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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user