-
Notifications
You must be signed in to change notification settings - Fork 1
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 nix support #74
base: main
Are you sure you want to change the base?
Add nix support #74
Conversation
flake.nix
Outdated
roc-start = import ./buildRocPackage.nix { | ||
inherit pkgs roc-cli; | ||
src = ./.; | ||
outputHash = "sha256-huhu+fXYoxxf8WT2eQ5teGM6t1ziWyaTVdUAz6mBaTo="; |
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.
If I'm getting Roc right dependencies will always be declared in main.roc and if any single one of them is updated/removed/added this hash should be updated.
I've added printing of arguments passed in For some reason arguments aren't parsed at all, doesn't seem to be nix issue at all.. |
Thanks for working on Nix support. What you are running into is #68 which actually is roc-lang/basic-cli#82, which causes cli args to be empty. This is an issue when using the legacy linker. The filer for #68 tried using the surgical linker, which does not have the basic-cli args issue, but the surgical linker did not work in his case. Have you tried building with |
Surgical linker also doesn't seem to be working. I've actually refactored |
WIP WIP
Hi, I was interested in trying out roc-start but as I'm NixOS user I'd prefer to use flake over bash scripts.
I've added very crude
buildRocPackage.nix
file, flake and used that there.As far as I know it might very well be the first thing doing something like
buildRocPackage
(I've browsed public roc repos and didn't find a single one distributing roc program as output of the flake).I'm using
roc-start
distributed with this setup and it seems to be workinghttps://github.com/nxy7/dotfiles/blob/63efaa62e56125aed9d45555c5d088ac9f782f44/flake.nix#L87
https://github.com/nxy7/dotfiles/blob/63efaa62e56125aed9d45555c5d088ac9f782f44/home/packages.nix#L4