-
Notifications
You must be signed in to change notification settings - Fork 86
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
nix develop? #94
Comments
Oh wait— got it. Needed to avoid the
And with this setup, I can also do stuff like:
They're not kidding about the nix learning curve! |
This is what I was writing before your response, but I'm posting it anyway in case it helps you understand the details of what was going wrong: The Also, |
Nice, thank you for the additional explanation; my original attempt was indeed to do this in a separate repo, but I was completely hitting a wall on that and so went to incremental change. :) Now that this basic step is working, I'll return to that. Interestingly, though, the caching side doesn't seem to be working— Also, the difference between |
I'm not sure what's going on with eval caching. It only works when the eval is exactly the same as a previous one; even the most minor change invalidates the cache. I've always considered my I considered using colcon to build the packages, particularly for ROS2, but I found the current approach to be easier, at least for now. |
This was my assumption, but surely it should be clean when it's called twice back to back, right? Regarding the setup files in colcon, I found this very confusing as well and initiated a conversation here that I thought turned out pretty helpful: colcon/colcon-core#262 Basically the short answer is that This request is probably also relevant to our interests: colcon/colcon-core#365 ;) |
Yeah, I don't know why the eval cache wouldn't work in that case. Thanks for those links! it looks like they should have the information I need. I've been working on other projects recently, but I'll take a look at them more closely when I get a chance and see if there is anything I can integrate into the overlay. |
Just popping back in here to say that the eval cache does seem to be working for me now— I don't know exactly the issue was before, but for the moment I've taken the liberty of temporarily forking and locking everything down (nixpkgs + the poco patches, nix-ros-overlay), so that may be part of it. |
I was wondering if it were possible to get
nix develop
andnix build
working, for which the main barrier seems to be impurity issues. I enabled Flakes on my system, and then following #52 and a similar modification as #64 (comment), I ended up with thisdefault.nix
:And this
flake.nix
:And this
ros-base.nix
, which works fine when run with, egnix-shell ros-base.nix
:However, trying to run
nix develop
in this path, I get:Or, depending on various bits of fiddling I can instead get:
Or:
Or sometimes:
I feel certain I must be doing something silly wrong here. Any pointers greatly appreciated.
The text was updated successfully, but these errors were encountered: