mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-22 22:11:50 +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));
|
deps = defaultDeps ++ (l.concatLists (l.map depsByExtra cfg.buildExtras));
|
||||||
in
|
in
|
||||||
l.map (name: cfg.drvs.${name}.public.out) deps;
|
l.map (name: cfg.drvs.${name}.public.out) deps;
|
||||||
|
|
||||||
|
passthru.topConfig = config;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user