Skip to content

Commit

Permalink
mkPackage: Expose fixpoint root as .internals
Browse files Browse the repository at this point in the history
Giving no access at all would be really annoying for debugging.

Unlike `mkDerivation`, which makes no distinction between intentional
and internal package attributes, this gives a signal that when you're
using it, you are more likely to have to change your code at some point.
(besides keeping the public package attrs _relevant_)
  • Loading branch information
roberth committed Jan 15, 2025
1 parent 5cbca85 commit a2c1e46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/build-support/package/make-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ let
deps = old.deps // f old.deps;
});

internals = this;

# FIXME: Use `toExtension f`?
# TODO: Support legacy attrs like passthru?
overrideAttrs = f:
Expand Down

0 comments on commit a2c1e46

Please sign in to comment.