allow isolated modules
This commit is contained in:
parent
828701871a
commit
935959858b
2 changed files with 9 additions and 4 deletions
|
|
@ -20,6 +20,8 @@ in {
|
|||
modBuilder mixture.private
|
||||
|> projectOnto
|
||||
{
|
||||
isolated = false;
|
||||
|
||||
includes = {
|
||||
public = [];
|
||||
private = [];
|
||||
|
|
@ -35,8 +37,11 @@ in {
|
|||
# config = Terminal {};
|
||||
};
|
||||
|
||||
mkInputs = mixture: {this = mixture;} // inputs;
|
||||
descendentInputs = mkInputs mixture.protected;
|
||||
inputBuilder = mixture:
|
||||
if decl.isolated
|
||||
then inputs // {this = mixture;}
|
||||
else {this = mixture;} // inputs;
|
||||
descendentInputs = inputBuilder mixture.protected;
|
||||
|
||||
mkMixtureIncludes = layer: mkIncludes decl.includes.${layer} descendentInputs;
|
||||
mkMixtureSubMods = layer: mkSubMods decl.submods.${layer} descendentInputs;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{mix, ...} @ inputs:
|
||||
mix.newMixture inputs (mixture: {
|
||||
isolated = true;
|
||||
includes.public = [
|
||||
./nt
|
||||
];
|
||||
# XXX: TODO: submods.protected STILL doesn't work??
|
||||
submods.public = [
|
||||
submods.protected = [
|
||||
./std
|
||||
];
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue