!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

825 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.180 Servers

Load older messages


SenderMessageTime
11 Jul 2025
@jollywater:matrix.orgjollywatercould very easily contribute some rust code07:54:53
@emilazy:matrix.orgemilyFWIW I wouldn't necessarily agree with this – sometimes there is just not going to be an upstream thing for what we need12:59:17
@emilazy:matrix.orgemilyadmittedly systemd is implementing more and more glue stuff, but it's often highly opinionated to the extent that "this doesn't work for NixOS" will just get a "meh"12:59:44
@emilazy:matrix.orgemilywe have to take ownership of a lot of glue, it's just that right now a bunch of it is random inlined Bash12:59:56
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.org joined the room.15:30:55
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.orgHello! 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! 15:33:39
@dramforever:matrix.orgdramforeverdepending on what changes you're looking to do15:52:37
@dramforever:matrix.orgdramforeverif it's something you want to change in system nix then of course you have to replace system nix15:52:59
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.orgOn MacOS is that my only option when I want to run a build with my modified binary?15:57:10
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.org(I'm trying to improve AWS error handling w/ S3 caches FWIW, particularly around expired tokens)15:58:09
@dramforever:matrix.orgdramforeverif you just want to test it, you can look into how existing tests work16:01:41
@dramforever:matrix.orgdramforeveri'm not sure if there's anything network in it16:01:55
@dramforever:matrix.orgdramforeverbut there's some scripts that create a local store just for testing purposes16:02:09
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.orgWell I need to interact with AWS w/ an expired token to see the behavior. I don't imagine the existing tests are gonna help much, even if they are mocking AWS.16:04:44
@dramforever:matrix.orgdramforeverthe existing tests handle building in a local store part16:05:05
@dramforever:matrix.orgdramforeveroh16:05:07
@dramforever:matrix.orgdramforeverby local i mean separate16:05:11
@dramforever:matrix.orgdramforeverit doesn't touch the system nix16:05:15
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.orgEasiest (for me) would be running the nix binary I built w/ extra logging against real AWS 16:05:21
@dramforever:matrix.orgdramforeverso it would sidestep the problem of having to change your system nix16:06:01
@dramforever:matrix.orgdramforeverit can even test a separate store with daemon and client16:06:16
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.orgAny particular script you could suggest? There are a lot in that directory.16:07:00
@dramforever:matrix.orgdramforever start at common.sh and look at the few it sources 16:09:45
@dramforever:matrix.orgdramforever * start at common.sh and look at the few scripts it sources 16:09:49
@dramforever:matrix.orgdramforeveror just add your own test script16:09:53
@dramforever:matrix.orgdramforever most important is probably common/vars.sh, which sets a bunch of NIX_*_DIR environment variables 16:13:43
@dramforever:matrix.orgdramforeverso it redirects everything away from the system store and configs and stuff16:13:57
@m4dc4pxx:matrix.org@m4dc4pxx:matrix.org In common/functions I found startDaemon; from that it seems setting NIX_DAEMON_SOCKET_PATH to something in my local dir, then running nix daemon (in same shell), gets me further. Thanks for pointer! 16:23:12
@dramforever:matrix.orgdramforeverah yes, that would help if you need a daemon16:25:00
@dramforever:matrix.orgdramforeveryou got it16:25:06

Show newer messages


Back to Room ListRoom Version: 6