-
Notifications
You must be signed in to change notification settings - Fork 217
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
fix cardano-wallet nixos module #4869
fix cardano-wallet nixos module #4869
Conversation
The option `self.defaultPackage.${pkgs.system}` does not contain a `cardano-node` package, it only contains a `cardano-wallet` package. So we point to the correct `cardano-node` compatible with `cardano-wallet` by using `self.packages.${pkgs.system}.cardano-node` instead. This fixes cardano-foundation#4522.
Thanks a lot for the PR @clemenscodes |
The fastest way to verify would be using NixOS and running the
So the script that runs the cardano-node refers to the cardano-node binary via the The services.cardano-node.package = lib.mkDefault self.defaultPackage.${pkgs.system}; in You can verify that this referenced nix --extra-experimental-features "nix-command flakes" build .#defaultPackage.x86_64-linux
ls result/bin | grep cardano-node # fails After confirming this, you can then build nix --extra-experimental-features "nix-command flakes" build .#packages.x86_64-linux.cardano-node
ls result/bin | grep cardano-node # succeeds If you have any more questions or issues with verifying this, feel free to reach out. |
currently trying to test this change, nix takes ages to download and build 12GB of data |
What I don't understand is that running |
Yeah, it takes a lot of data, but fortunately you can garbage collect the data afterwards. The point is that the derivation you built with |
Integration tests rely on Nix, I will need to create an internal PR to ensure this is validated by the CI. |
3905529
This fixes #4522.
The option
self.defaultPackage.${pkgs.system}
does not contain acardano-node
package, it only contains acardano-wallet
package.Currently users are required to override the
services.cardano-node.package
option manually by pointing to a compatible cardano-node package.So we point to the correct
cardano-node
compatible withcardano-wallet
by usingself.packages.${pkgs.system}.cardano-node
instead.