-
-
Notifications
You must be signed in to change notification settings - Fork 320
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: buildRocPackage lib output to nix flake #7391
Conversation
@@ -0,0 +1,41 @@ | |||
{ pkgs, roc-cli, name, entryPoint, src, outputHash, linker ? "", ... }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now this depends on passed in roc-cli
. I think it's fine until roc is in nixpkgs, then we could just use roc-cli
from pkgs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nxy7 :)
@Anton-4 -- I also update the flake and resolved the nix deprecation warnings. |
Were these shown on your machine only? |
I upgraded my nix version to |
This PR adds
buildRocPackage
function as output of flake lib which allows packaging Roc apps using Nix.Here's how usage of
buildRocPackage
looks like from remote flake.Probably it can be improved, but it was sufficient to package
roc-start
and should be okay starting point.Screenshot of
roc-start
packaged usingbuildRocPackage