Skip to content

Commit

Permalink
Better nix infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 3, 2024
1 parent 12a908b commit f51a0df
Show file tree
Hide file tree
Showing 6 changed files with 1,118 additions and 387 deletions.
98 changes: 49 additions & 49 deletions nix/fixtures/module-repo/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions nix/fixtures/module-repo/zome/zome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
holochain = inputs'.holochain;
crateCargoToml = ./Cargo.toml;
};

#

checks.my_zome = inputs.hc-infra.outputs.lib.sweettest {
workspacePath = inputs.self.outPath;
holochain = inputs'.holochain;
Expand Down
25 changes: 7 additions & 18 deletions nix/fixtures/service-repo/dna/dna.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
{ inputs, ... }:

{
perSystem =
{ inputs'
, config
, pkgs
, system
, lib
, self'
, options
, ...
}: {
packages.my_dna = inputs.hcUtils.outputs.lib.dna {
dnaManifest = ./dna.yaml;
holochain = inputs'.holochain;
zomes = {
my_zome = inputs'.module.packages.my_zome;
};
};
};
perSystem = { inputs', config, pkgs, system, lib, self', options, ... }: {
packages.my_dna = inputs.hc-infra.outputs.lib.dna {
dnaManifest = ./dna.yaml;
holochain = inputs'.holochain;
zomes = { my_zome = inputs'.module.packages.my_zome; };
};
};
}
Loading

0 comments on commit f51a0df

Please sign in to comment.