| 11 Jul 2025 |
@m4dc4pxx:matrix.org | See previous posting :)
Hello! I'm trying to do some nix hacking on macos. I've built nix successfully, but my changes aren't showing up when I run the binary. (I've added logging I'm pretty sure I should see, and its not there.) I suspect its because my system nix uses the multi-user setup and the daemon is not running the binary I built. Is there any solution besides replacing the system nix? Or am I looking in the wrong direction? Appreciate any help!
| 16:30:35 |
dramforever | i'm not sure if you need a daemon... | 16:31:18 |
@m4dc4pxx:matrix.org | I don't want a daemon but I don't know if I have a choice. Previously, running nix-instantiate seemed to defer to the system daemon and did not produce the output I expected. | 16:31:23 |
dramforever | i just tried NIX_STORE_DIR=$(pwd)/meow/store NIX_STATE_DIR=$(pwd)/meow/var nix-instantiate --option store local . -A hello | 16:32:30 |
dramforever | this works, but i'm also on linux | 16:32:37 |
dramforever | hopefully it should work on macos | 16:33:07 |
@m4dc4pxx:matrix.org | Do you have multi-user nix installed? | 16:33:29 |
@m4dc4pxx:matrix.org | * Do you have multi-user nix installed/configured? | 16:33:42 |
dramforever | yes | 16:34:17 |