From a2c1e46a66d9a155aa9a7a1cad7de5fd7cd1dafb Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 15 Jan 2025 08:53:16 +0100 Subject: [PATCH] mkPackage: Expose fixpoint root as .internals 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_) --- pkgs/build-support/package/make-package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/package/make-package.nix b/pkgs/build-support/package/make-package.nix index 6a370f07c974d..8b19e1ee344bd 100644 --- a/pkgs/build-support/package/make-package.nix +++ b/pkgs/build-support/package/make-package.nix @@ -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: