-
Notifications
You must be signed in to change notification settings - Fork 50
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
Why not purs-nix instead of spago and spago2nix #1085
Comments
Thank you for sharing! |
@klntsky From haskell and javascript devs perspective, I believe it will be beneficial to reduce the boilerplate to get started, it's easier to deal with a single domain-specific language (nix) instead of two (nix and dhall). It scares a lot to have such boilerplate (npm packages, nix flakes and spago dhalls). Another way around would be to remove nix and use spago only, but I don't think it's feasable at the current stage. |
Oh there are other three benefits:
|
We don't have a goal of making nix the only building method.
It may or may not happen, see this thread. There are shortcomings in every other tool. Anyway, moving away from webpack is not scheduled for the current milestone at least.
This is going to be addressed by #1076 |
I understand, anyway I'll try to keep this fork in sync with stable CTL releases, for anyone looking for a |
Just to clarify for anyone interested in the |
Update: the fork has been archived, moved to LovelaceAcademy/ctl-nix. This issue is a wont fix? Please let me know if I should close it. Thanks! |
@klarkc sorry for late reply. I think we should give it a try, but we can't allocate resources for that at the moment. |
No problem, it's already working, as you can see in this demo https://github.com/LovelaceAcademy/nix-templates/tree/main/pix-ctl-full I totally understand, maybe going fully on Nix is out of the scope of the project right now. Also I should mention that there is a new alternative being developed Purifix that also might fit better in your scenario. |
CTL is using its own prelude, and nix for a lot of things, it should be also using nix to reduce boilerplate. I tested it here, and this is the result: https://github.com/LovelaceAcademy/cardano-transaction-lib/tree/develop/templates/la-scaffold
To achieve it, I forked purs-nix and its registry and added my own namespace with pinned dependencies following the spago package-set. For the CTL dependencies, I forked it and added the missing flake files.
It's still missing test things (like Plutip), but I liked the result, so I am sharing it here.
The text was updated successfully, but these errors were encountered: