-
Notifications
You must be signed in to change notification settings - Fork 3
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
Re-enable use without flakes #3
Comments
@gonzaponte could you please check whether this works for you? |
Remind me, what should I do with this? I ran |
It should provide you with all the dependencies that you need to develop and run the code. Given that you've already got most of this stuff by other means, you won't notice much difference, apart from the versions (maybe) and the locations, which should all be in the nix store, in the shell. If you hadn't installed Oh, and the compiler is Furthermore, if you have |
Hmm. I am pretty sure I had |
Yes. You said that your OS was too old to have a modern Nix, so you couldn't use flakes. The
|
|
Which is hard to believe, given that in the
|
I almost forget about this. Is there anything I can do to debug?
then |
Well, first of all, show me the output of |
And |
As you say, there is no
direnv version 2.21.2 |
|
but no errors. |
I suspect that In which case, the puzzle is why it's gone down that branch, if you claim that you cannot use flakes on your system. What happens when you do
And now that shell should have all the flake-specified dependencies available. Anyway, we still need to get the general
|
Yes, this I knew. When I started working on this we discussed it, and that's why you opened this issue (IIRC). |
The latest release of |
|
Nix is still black magic to me.
|
Mea culpa: it should be |
That works completely fine. Thanks! Hopefully I will get around to update my OS as well... |
One of the great joys of NixOS is that OS upgrades don't cause the terror and anguish that they do on other OSes. On NixOS, an OS upgrade is just a switch to a different declaration of what your system should look like. If you don't like the new one, or it's broken in some way, it's completely trivial to go back to the previous one. All because it doesn't modify any state at all, it merely reifies declarations. With other OSes and package managers, when you install or uninstall something, you modify the state: in general, in complex systems such as OSes, it's impossible to undo such modifications completely. Yes, you can, for example, uninstall a package after having installed it, but it's pretty unlikely that you have returned to exactly the same state as you had to start with. Do this lots of times, and your OS is one huge, unreproducible mess. Pre-nix, I was reluctant to try new packages, because I had been burned so many times by install-uninstall breaking something that worked before. With nix, In the long run, it's well worth the pain it takes to get started with Nix. |
The
shell.nix
flake-compat shim was removed, because I thought nobody would need it, and that it was unnecessary noise. Turns out I was wrong.The text was updated successfully, but these errors were encountered: