1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

nixgl: clarify purpose of modified override

Co-authored-by: Jure Varlec <jure@varlec.si>
This commit is contained in:
Mel Bourgeois 2024-11-03 14:52:13 -06:00 committed by GitHub
parent 235fc0101a
commit f00ac7d6c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));
});