-
Notifications
You must be signed in to change notification settings - Fork 352
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 Crystal Language #82
Conversation
Hey! Thanks a lot for this work - before we can merge this Crystal needs to build in nixpkgs. I'd suggest bumping it to the latest version and making sure it builds on linux/darwin (remove broken flag in its source). Let me know if you need more guidance :) |
I'm maintaining https://github.com/manveru/crystal-flake for some time now, because building Crystal from source on all the different platforms seems to be a never-ending time sink and it breaks in nixpkgs constantly. Not sure if you'd consider using this? |
I'm not sure if flakes can be used for first class citizen languages in devenv. Yet I got errors in x86_64-darwin and aarch64-darwin so we are still blocked in the nixpkgs PR :-( x86_64-darwin
aarch64-darwin:
|
Thanks for trying, I have no macs around, so those attributes haven't seen any testing... mostly just added them because someone requested it. |
f43b177
to
fba7183
Compare
crystal package is no longer broken in nixpkgs :-) I would like to understand how in the future the multiple version of the compiler could be supported. Is there anywhere I can read about it? So far I see that some languages offers a Finally, I don't see language packages offering default behaviors like pre-commit hooks for autoformat the code. At least having that opt-in would make sense in Crystal and Elm since their formatter are broadly used. |
Adding a As for the pre-commit hooks, I haven't found a good solution yet. I don't want to turn them on by default. Maybe each language should have a documentation page suggesting these things. |
This attempts to re-add crystal support. Based on #53, the compiler was missing.
Since crystal compiler support is based on nixpkgs currently building the package on some distros might fail.
NIXPKGS_ALLOW_BROKEN=1
is set.The latest release of crystal in nixpkg is 1.2.2, yet in https://github.com/crystal-lang/crystal is 1.6.2 .
I hope this will help to push the support of crystal in nixpkg.
If the state of the art of crystal in nixpkg is not good enough, please close the PR and we can discuss either
If accepted, should I update some documentation/examples artifacts also?