Conversation
Notices
-
Nix 2.0 is looking nice.
There is the foundation for a unified #nix command, much like how #guix looks.
https://nixos.org/nix/manual/#ssec-relnotes-2.0
-
You can't just `nix-channel --update && nix-env -uA nixpkgs.nix` to get it -- it's apparently not on the master branch. Funny for a release. But here's how you get it:
- Check out the nix-2.0 branch of github:nixos/nixpkgs
- nix-env -f . -iA nix
This will install nix-2.0pre5914_48c192ca, which also sounds funny for a release.
-
Actually it's already on master, but not as nix, but rather as nixUnstable. So no need to clone anything, just:
$ nix-env -iA nixpkgs.nixUnstable
-
Side note: I hate launchd, and how bad MacOS things in general handle symlinks. I ve never managed to restart nix-daemon after an upgrade, or after I edited /etc/nix/nix.conf. If I `launchctl stop system/org.nixos.nix-daemon`, it wouldn't stop. If I killed it and `launchctl start system/org.nixos.nix-daemon`, it wouldn't start. If I tried to `launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist` it would say it didn't know any service '/nix/store/...'.
Now I copied the file there instead of symlinking to the latest nix, and changed the absolute reference in the file to /nix/var/nix/profile/nix/... instead. Now I can unload and load it as I should have been able to all along.
-
Now I'm running in sandbox mode and it's not horrible broken. Nice!
> checking whether we are cross compiling... configure: error: in `/private/tmp/nix-build-racket-6.12.drv-0/racket-6.12/src/build':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
... never mind.
-
> configure:3839: ./conftest
> dyld: Library not loaded: @rpath/CoreFoundation.framework/Versions/A/CoreFoundation
> Referenced from: /private/tmp/nix-build-racket-6.12.drv-0/racket-6.12/src/build/./conftest
> Reason: no suitable image found. Did find:
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation: file system sandbox blocked stat()
As it should. But LD_LIBRARY_PATH should have been set, and it isn't.
-
`nix optimise-store` has a progress indicator, nice!