Skip to content

Commit

Permalink
Roles integration WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jul 3, 2024
1 parent eb1d225 commit bc84763
Show file tree
Hide file tree
Showing 25 changed files with 4,917 additions and 986 deletions.
63 changes: 29 additions & 34 deletions dnas/plenty/dna.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,35 @@

{
# Import all ./zomes/coordinator/*/zome.nix and ./zomes/integrity/*/zome.nix
imports = (
map (m: "${./.}/zomes/coordinator/${m}/zome.nix")
(builtins.attrNames (builtins.readDir ./zomes/coordinator))
)
++
(
map (m: "${./.}/zomes/integrity/${m}/zome.nix")
(builtins.attrNames (builtins.readDir ./zomes/integrity))
)
;
perSystem =
{ inputs'
, self'
, lib
, ...
}: {
packages.plenty_dna = inputs.hc-infra.outputs.lib.dna {
dnaManifest = ./workdir/dna.yaml;
holochain = inputs'.holochain;
zomes = {
notifications_integrity = inputs'.notifications.packages.notifications_integrity;
notifications = inputs'.notifications.packages.notifications;
file_storage_integrity = inputs'.file-storage.packages.file_storage_integrity;
file_storage = inputs'.file-storage.packages.file_storage;
# Include here the zome packages for this DNA, e.g.:
# This overrides all the "bundled" properties for the DNA manifest
profiles_integrity = inputs'.profiles.packages.profiles_integrity;
profiles = inputs'.profiles.packages.profiles;
imports = (map (m: "${./.}/zomes/coordinator/${m}/zome.nix")
(builtins.attrNames (builtins.readDir ./zomes/coordinator)))
++ (map (m: "${./.}/zomes/integrity/${m}/zome.nix")
(builtins.attrNames (builtins.readDir ./zomes/integrity)));
perSystem = { inputs', self', lib, ... }: {
packages.plenty_dna = inputs.hc-infra.outputs.lib.dna {
dnaManifest = ./workdir/dna.yaml;
holochain = inputs'.holochain;
zomes = {
notifications_integrity =
inputs'.notifications.packages.notifications_integrity;
notifications = inputs'.notifications.packages.notifications;

households_integrity = self'.packages.households_integrity;
households = self'.packages.households;
producers_integrity = self'.packages.producers_integrity;
producers = self'.packages.producers;
};
roles_integrity = inputs'.roles.packages.roles_integrity;
roles = inputs'.roles.packages.roles;

file_storage_integrity =
inputs'.file-storage.packages.file_storage_integrity;
file_storage = inputs'.file-storage.packages.file_storage;
# Include here the zome packages for this DNA, e.g.:
# This overrides all the "bundled" properties for the DNA manifest
profiles_integrity = inputs'.profiles.packages.profiles_integrity;
profiles = inputs'.profiles.packages.profiles;

households_integrity = self'.packages.households_integrity;
households = self'.packages.households;
producers_integrity = self'.packages.producers_integrity;
producers = self'.packages.producers;
};
};
};
};
}
10 changes: 10 additions & 0 deletions dnas/plenty/workdir/dna.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ integrity:
bundled: "<NIX_PACKAGE>"
dependencies: ~
dylib: ~
- name: roles_integrity
hash: ~
bundled: "<NIX_PACKAGE>"
dependencies: ~
dylib: ~
- name: file_storage_integrity
hash: ~
bundled: "<NIX_PACKAGE>"
Expand Down Expand Up @@ -38,6 +43,11 @@ coordinator:
bundled: "<NIX_PACKAGE>"
dependencies:
- name: profiles_integrity
- name: roles
hash: ~
bundled: "<NIX_PACKAGE>"
dependencies:
- name: roles_integrity
dylib: ~
- name: file_storage
hash: ~
Expand Down
Loading

0 comments on commit bc84763

Please sign in to comment.