feat: allow pip drvs to access config from their parent drv

I'm doing custom builds from editable installs in a meta-repo.

To get the dirty editable path of a dependency drv, I'd need this patch, to be able to do something like:

```nix
{config, ...}:
let
  inherit (config.mkDerivation.passthru) topConfig;
  fullRelPath = topConfig.lock.content.fetchPipMetadata.sources.${config.name}.path;
in ...
```

@moduon MT-1075
This commit is contained in:
Jairo Llopis 2023-10-17 09:46:17 +01:00
parent 1caf997f69
commit 78d47efd67
No known key found for this signature in database
GPG Key ID: E47E3BE44B940490

View File

@ -106,6 +106,8 @@
deps = defaultDeps ++ (l.concatLists (l.map depsByExtra cfg.buildExtras));
in
l.map (name: cfg.drvs.${name}.public.out) deps;
passthru.topConfig = config;
};
};
};