mirror of
https://gitlab.com/rensa-nix/core.git
synced 2026-02-01 23:05:08 +01:00
feat: add devshell and improve input handling of cells
pass system to cells and their flake.nix inputs
This commit is contained in:
parent
2774f3ea91
commit
c9c329ec0f
9 changed files with 62 additions and 5 deletions
|
|
@ -22,7 +22,13 @@
|
|||
cell = cells // {__cr = [cellName cellBlock.name];};
|
||||
additionalInputs =
|
||||
if l.pathExists cellP.flake
|
||||
then (callFlake (builtins.dirOf cellP.flake) {root.parent = inputs;}).outputs
|
||||
then
|
||||
(callFlake (builtins.dirOf cellP.flake) {
|
||||
root = {
|
||||
parent = inputs;
|
||||
system = system;
|
||||
};
|
||||
}).outputs
|
||||
else {};
|
||||
in
|
||||
importSignatureFor system cell cells additionalInputs;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
inherit self;
|
||||
cells = deSystemize system cells;
|
||||
};
|
||||
inherit cell;
|
||||
inherit cell system;
|
||||
};
|
||||
in {
|
||||
inherit deSystemize createImportSignature;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue