1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-03 23:05:03 +01:00

nixgl: forward override calls to wrapped package

This commit is contained in:
Mel Bourgeois 2024-11-01 23:22:59 -05:00 committed by Robert Helgesson
parent edb8b00e4d
commit 8bea1a2005
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -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" { };