mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-08-17 02:10:31 +03:00
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:
parent
1caf997f69
commit
78d47efd67
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user