!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

785 Members
For people hacking on the Nix package manager itself169 Servers

Load older messages


SenderMessageTime
3 Jan 2025
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1,9}) to elikoga.10:28:15
@perchun:matrix.orgPerchun PakI found in other logs that it fails to find /bin/sh (https://github.com/NixOS/nix/blob/442a2623e48357ff72c77bb11cf2cf06d94d2f90/src/libexpr-tests/nix_api_expr.cc#L105). but build from github:NixOS/nix works I don't get this at all, how does it find something in /bin13:02:32
@gotha:matrix.orggotha joined the room.14:36:57
@golbinex:beeper.comgolbinex joined the room.14:43:40
@tomberek:matrix.orgtomberekDoes 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:matrix.orgPerchun Pak there is --store 21:17:18
@tomberek:matrix.orgtomberek

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
@rickynils:nixos.devRickard 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
@rickynils:nixos.devRickard 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:matrix.orgYaelXi (She/Her) joined the room.08:52:18
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughanIf 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
@rickynils:nixos.devRickard NilssonNo, 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
@rickynils:nixos.devRickard NilssonYou probably need a chroot store for evaluation (`--eval-store`)10:01:12
@rickynils:nixos.devRickard NilssonI've never tried running a local `nix-daemon` with a custom `NIX_STORE_DIR` though. Maybe it works, maybe not.10:03:57
@tomberek:matrix.orgtomberekCorrect. 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
@ruroruro:matrix.orgruro joined the room.03:44:02
@immae:immae.euimmae left the room.12:09:22
@ozmodeuz:matrix.orgoz joined the room.13:10:56
@arshpratap3101:matrix.orgArsh Pratap joined the room.17:29:10
@rsynnest:matrix.org@rsynnest:matrix.org joined the room.21:25:53
@rsynnest:matrix.org@rsynnest:matrix.orghi 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 happens21:29:35
@rsynnest:matrix.org@rsynnest:matrix.orgAh ok I think I see them in Hydra, but hydra's search keeps timing out for me so I can't find a specific package21:30:38
@k900:0upti.meK900https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.mysql.x86_64-linux21:40:19
@renato-trevisan:matrix.orgRenato Trevisan set a profile picture.21:58:26
@rsynnest:matrix.org@rsynnest:matrix.orgthank 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/all22:09:24
@rsynnest:matrix.org@rsynnest:matrix.orgah nvm found it! https://hydra.nixos.org/job/nixpkgs/trunk/mysql84.aarch64-darwin22:15:38
9 Jan 2025
@yaelxi:matrix.orgYaelXi (She/Her) changed their display name from yaelxi to YaelXi (She/Her).05:25:07
@yaelxi:matrix.orgYaelXi (She/Her) set a profile picture.05:32:37
@hexa:lossy.networkhexa
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

Show newer messages


Back to Room ListRoom Version: 6