| 3 Jan 2025 |
| gotha joined the room. | 14:36:57 |
| golbinex joined the room. | 14:43:40 |
tomberek | Does anyone build/maintain/have-experience-with building Nix to operate over a different non-/nix prefix? Eg "/var/nix" or "/opt" or "/something-else"? | 21:07:28 |
Perchun Pak [don't ping; dm instead] | there is --store | 21:17:18 |
tomberek | Yeah, I'm aware of running via an alternative physical location for a store. I mean to actually change the prefix against which things are built. (yep, will invalidate the cache) This does seem to be sort-of-working:
[tom@tframe:~/nix/main/build]$ ./src/nix/nix build --impure --expr 'derivation {name="a"; builder = ./busybox; system="x86_64-linux"; args = ["sh" "-c" "echo hi > $out"];}' -vv -L --builders ''
evaluating file '<nix/derivation-internal.nix>'
downloading 'https://cache.nixos.org/nix-cache-info'...
warning: binary cache 'https://cache.nixos.org' is for Nix stores with prefix '/nix/store', not '/opt/nix/store'
this derivation will be built:
/opt/nix/store/77iwbxab9l1fsng3vlax7wf7vi5diz6v-a.drv
building '/opt/nix/store/77iwbxab9l1fsng3vlax7wf7vi5diz6v-a.drv'...
| 22:19:00 |
| 4 Jan 2025 |
Rickard Nilsson | @tomberek:matrix.org: Do you specifically need to build Nix for another prefix, not just set https://nix.dev/manual/nix/2.25/command-ref/env-common#env-NIX_STORE_DIR? | 08:13:50 |
Rickard Nilsson | * @tomberek:matrix.org: Do you specifically need to build Nix for another prefix, not just set https://nix.dev/manual/nix/2.25/command-ref/env-common#env-NIX_STORE_DIR ? | 08:14:39 |
| YaelXi (She/Her) joined the room. | 08:52:18 |
matthewcroughan | In reply to @rickynils:nixos.dev @tomberek:matrix.org: Do you specifically need to build Nix for another prefix, not just set https://nix.dev/manual/nix/2.25/command-ref/env-common#env-NIX_STORE_DIR ? Yeah you do, the env-var is just for the chroot mode isn't it? | 09:25:41 |
matthewcroughan | If the prefix dir differs from the runtime store dir then won't nix decide to use a chroot to fake the functionality? | 09:26:16 |
Rickard Nilsson | No, I think NIX_STORE_DIR is used during evaluation, and then it is up to you to point Nix to a store that uses that prefix. It can be a chroot store, but it can also be a remote store. nixbuild.net actually supports any store prefix you throw at it (needs `--store ssh-ng://eu.nixbuild.net`). | 09:59:57 |
Rickard Nilsson | You probably need a chroot store for evaluation (`--eval-store`) | 10:01:12 |
Rickard Nilsson | I've never tried running a local `nix-daemon` with a custom `NIX_STORE_DIR` though. Maybe it works, maybe not. | 10:03:57 |
tomberek | Correct. This is a compile-time option, or three of them it seems like. I was hoping someone else had already done it. There is also an open issue to properly document doing it. | 16:37:10 |
| 7 Jan 2025 |
| ruro joined the room. | 03:44:02 |
| immae left the room. | 12:09:22 |
| oz joined the room. | 13:10:56 |
| Arsh Pratap joined the room. | 17:29:10 |
| @rsynnest:matrix.org joined the room. | 21:25:53 |
@rsynnest:matrix.org | hi all, I was wondering where I might find production build logs for a package from nixpkgs? (specifically mysql84 or mysql80) I was poking around Github Actions and https://hydra.nixos.org/ but I'm not seeing where an actual build happens | 21:29:35 |
@rsynnest:matrix.org | Ah ok I think I see them in Hydra, but hydra's search keeps timing out for me so I can't find a specific package | 21:30:38 |
K900 | https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.mysql.x86_64-linux | 21:40:19 |
| Renato Trevisan set a profile picture. | 21:58:26 |
@rsynnest:matrix.org | thank you K900! I'm looking for aarch64-darwin builds but I can't seem to find those. Tried messing with URL a bit but no luck. Does Hydra do any MacOS builds?
For example: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.mysql.aarch64-darwin/all | 22:09:24 |
@rsynnest:matrix.org | ah nvm found it!
https://hydra.nixos.org/job/nixpkgs/trunk/mysql84.aarch64-darwin | 22:15:38 |
| 9 Jan 2025 |
| YaelXi (She/Her) changed their display name from yaelxi to YaelXi (She/Her). | 05:25:07 |
| YaelXi (She/Her) set a profile picture. | 05:32:37 |
hexa | Jan 09 20:00:06 elated-minsky nix-gc-start[442857]: error: cannot delete path '/nix/store/lh9x1vqajm6d64qv0ybj0ycjr60jp0xh-unit-dbus.service' because it is in use by '/nix/store/0wv2qbyw0p6pb4p4wfxglm2yw7sb1y9n-user-units'
Jan 09 20:00:06 elated-minsky nix-gc-start[442857]: 190 store paths deleted, 1225.93 MiB freed
Jan 09 20:00:06 elated-minsky systemd[1]: nix-gc.service: Main process exited, code=exited, status=1/FAILURE
Jan 09 20:00:06 elated-minsky systemd[1]: nix-gc.service: Failed with result 'exit-code'.
Jan 09 20:00:06 elated-minsky systemd[1]: Failed to start Nix Garbage Collector.
Jan 09 20:00:06 elated-minsky systemd[1]: nix-gc.service: Consumed 5.253s CPU time, 63.2M memory peak, 48K read from disk.
| 20:21:30 |
hexa | hey, can someone tell me why nix-collect-garbage seemingly stops after being unable to delete a path, when we in fact did not ask it o gc any specific path all? | 20:22:10 |
hexa | like, it is fine that it cannot delete it, continue with something else then? | 20:22:21 |