Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add system to outputs.nix #92

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Add system to outputs.nix #92

merged 1 commit into from
Sep 14, 2023

Conversation

Ali-Hill
Copy link
Collaborator

@Ali-Hill Ali-Hill commented Aug 31, 2023

This allows for the tool to work with the iogx version of the minimal examples

Summary by CodeRabbit


  • New Feature: Introduced a new function mkCertify that allows generation of the certify executable for different systems.
  • Refactor: Updated defaultPackage to include separate entries for x86_64-linux and x86_64-darwin systems, enhancing system compatibility.
  • Refactor: Modified the value of origProject from repo.iog.dapp to repo.iog.x86_64-linux.dapp, improving project specificity.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 31, 2023

Walkthrough

The changes primarily focus on enhancing the project's cross-platform compatibility. A new function mkCertify has been introduced to generate system-specific executables, and the defaultPackage and packages sections have been updated to accommodate both x86_64-linux and x86_64-darwin systems.

Changes

File Summary
.../data/outputs.nix The value of origProject is changed from repo.iog.dapp to repo.iog.x86_64-linux.dapp.
.../data/outputs.nix Introduced a new function mkCertify for system-specific executable generation. Updated defaultPackage and packages sections for x86_64-linux and x86_64-darwin systems.

🐇💻

In the land of code, where the shadows lie,

One function to rule them all, one function to find them,

One function to bring them all, and in the darkness bind them,

In the Land of Cross-Platform, where the Shadows lie.


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • Mention @coderabbitai in any review comment for bot assistance. The bot stays silent unless called upon.
  • Note: Review comments are made on code diffs or files, not on the PR overview.

Pause Incremental Reviews

  • Insert @coderabbitai: ignore in the PR description to halt the bot's ongoing reviews. Remove the line to resume.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 86445ea and 5471805 commits.
Files selected for processing (1)
  • dapps-certification-helpers/data/outputs.nix (1 hunks)
Files skipped from review due to trivial changes (1)
  • dapps-certification-helpers/data/outputs.nix

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 2

Commits Files that changed from the base of the PR and between 814cd3c and 5777f09 commits.
Files selected for processing (1)
  • dapps-certification-helpers/data/outputs.nix (1 hunks)
Additional comments (Suppressed): 1
dapps-certification-helpers/data/outputs.nix (1)
  • 63-68: Ensure that all references to the defaultPackage and packages throughout the codebase have been updated to match the new structure.

defaultPackage.x86_64-linux = certify;
packages.x86_64-linux.default = certify;

mkCertity = system: let
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in function name mkCertity, it should be mkCertify.

-  mkCertity = system: let 
+  mkCertify = system: let 

Comment on lines 39 to 45
exportReferencesGraph.plutus-apps = dapps-certification;
__structuredAttrs = true;
PATH = pkgs.lib.makeBinPath [ pkgs.coreutils pkgs.jq ];
builder = builtins.toFile "builder" ''
. .attrs.sh
jq '."plutus-apps"[0].narHash' < .attrs.json > "$(jq -r .outputs.out < .attrs.json)"
'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exportReferencesGraph.plutus-apps should be exportReferencesGraph.dapps-certification as we are dealing with the dapps-certification repository here.

-             exportReferencesGraph.plutus-apps = dapps-certification;
+             exportReferencesGraph.dapps-certification = dapps-certification;

@bogdan-manole
Copy link
Collaborator

@Ali-Hill should we squash those 3 commits and merge it?

@Ali-Hill
Copy link
Collaborator Author

Ali-Hill commented Sep 7, 2023

That's a good idea. I have removed the other two commits

This allows for the tool to work with the iogx version of the minimal examples
@bogdan-manole bogdan-manole merged commit 42b549b into master Sep 14, 2023
4 checks passed
@bogdan-manole bogdan-manole deleted the iogx-fix branch September 14, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants