forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overrideDerivation: fix meta handling (closes NixOS#7425)
stdenv.mkDerivation already implements the complicated addPassthru logic and calls derivation for us, in particular filtering out "meta". Using it ensures the invariant that mkDerivation{<a>}.overrideDerivation{<b>} == mkDerivation{<a and b>} Also, we give meta/passthru to the function, so that calls of the form overrideDerivation(drv: meta = drv.meta // ...) work. Finally, we use isFunction and recursiveMerge so that overrideDerivation { meta.x = y; } works as well.
- Loading branch information
1 parent
ab7a164
commit 788fd51
Showing
2 changed files
with
5 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters