nixgl: forward override calls to wrapped package
This commit is contained in:
parent
edb8b00e4d
commit
8bea1a2005
1 changed files with 9 additions and 1 deletions
|
@ -240,7 +240,15 @@ in {
|
|||
|
||||
shopt -u nullglob # Revert nullglob back to its normal default state
|
||||
'';
|
||||
}));
|
||||
})) // {
|
||||
# When the nixGL-wrapped package is given to a HM module, the module
|
||||
# might want to override the package arguments, but our wrapper
|
||||
# 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);
|
||||
};
|
||||
|
||||
wrappers = {
|
||||
mesa = makePackageWrapper "Intel" { };
|
||||
|
|
Loading…
Reference in a new issue