nixVersions.nix_2_26: Add .overrideScope

This commit is contained in:
Robert Hensing
2025-03-31 00:33:57 +02:00
parent 493f1e3b8b
commit d74838df79

View File

@@ -414,5 +414,17 @@ in
*/
overrideSource = src: (scope.overrideSource src).nix-everything;
/**
Override any internals of the Nix package set.
Single argument: the extension function to apply to the package set (finalScope: prevScope: { ... })
Example:
```
overrideScope (finalScope: prevScope: { aws-sdk-cpp = null; })
```
*/
overrideScope = f: (scope.overrideScope f).nix-everything;
};
}