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 a simple Nix flake devshell #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SakulK
Copy link

@SakulK SakulK commented Dec 31, 2022

Thank you for the awesome example ❤️

I'm not sure if it makes sense to merge this, but I'll let you make the call. NixOS requires some extra steps to make scala native build work. Nix flake devshell below is based on the "official" https://github.com/scala-native/scala-native/blob/main/scripts/scala-native.nix plus the s2n dependency required by this project. It might also work on MacOS with Nix, but I haven't tested that.

At the very least when a NixOS + Scala user (there are dozens of us, I'm sure 😛 ) finds this they can use it even if it's not merged 🙂

@armanbilge
Copy link
Contributor

At the very least when a NixOS + Scala user (there are dozens of us, I'm sure 😛 )

There are indeed! You may find this interesting :)

https://github.com/typelevel/typelevel-nix

In fact, the http4s CI itself currently uses that.

https://github.com/http4s/http4s/blob/3831ae7fd8040880153a83fa89277c42ffdd09e0/flake.nix

@SakulK
Copy link
Author

SakulK commented Dec 31, 2022

I'm actually using typelevel-nix in a small library I made as well, big fan 🙂 I guess it could be used here as well but I wanted to keep it as simple as possible for an example project

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