mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
nixgl: clarify purpose of modified override
Co-authored-by: Jure Varlec <jure@varlec.si>
This commit is contained in:
parent
235fc0101a
commit
f00ac7d6c2
1 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,11 @@ in {
|
|||
shopt -u nullglob # Revert nullglob back to its normal default state
|
||||
'';
|
||||
})) // {
|
||||
# Override arguments to the package itself, rather than the nixGL wrapper
|
||||
# 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));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue