Skip to content

Commit

Permalink
Support no happs required
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Jun 4, 2024
1 parent 1c5dcd4 commit adbb635
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nix/modules/happs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
];

postInstall = ''
# Ensure the derivation is not empty if there are ne hApps requested
mkdir -p $out
touch $out/.happ-build
${mkDnaBuildScripts (map mkDnaManifest requiredDnas)}
${mkHappBuildScripts (map mkHappManifest requiredHapps)}
'';
Expand Down
2 changes: 1 addition & 1 deletion nix/modules/scenario.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
cp "${scenarioBinary}/bin/${name}" $out/bin/
mkdir -p $out/happs
cp ${scenarioHapps}/*.happ $out/happs
cp ${scenarioHapps}/.happ-build ${scenarioHapps}/*.happ $out/happs
'';
};
};
Expand Down
2 changes: 2 additions & 0 deletions scenarios/remote_call/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ happ_builder = { workspace = true }

[lints]
workspace = true

[package.metadata]

0 comments on commit adbb635

Please sign in to comment.