!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

896 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
31 Dec 2024
@pim:envs.netpim* Wrong channel12:59:15
@k900:0upti.meK900(but also merged the PR for now) 12:59:21
@siraben:matrix.orgsiraben left the room.14:51:09
@tanja:catgirl.cloudTanja (she/her) changed their display name from Tanja (she/her) [DECT 6929] to Tanja (she/her).20:59:16
@elvishjerricco:matrix.orgElvishJerricco joined the room.23:49:46
@elvishjerricco:matrix.orgElvishJerriccoThought I'd bring some more attention to this, because it has caused numerous significant bugs: https://github.com/NixOS/nix/issues/11503#issuecomment-256673966123:55:14
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:18
2 Jan 2025
@hashphoenix:matrix.orgOluwapelumi Adeosun joined the room.10:13:39
@andiandi:tchncs.deandiandi 🐈 changed their display name from andiandi 📌 38C3 📞 4690 to andiandi.10:34:40
@urbas:matrix.orgMatej Urbas changed their display name from urbas to Matej Urbas.17:38:28
@laurynasp:matrix.org@laurynasp:matrix.org joined the room.19:35:39
@perchun:matrix.orgPerchun Pak [don't ping; dm instead]

I am getting a weird test failure while trying to build latest git nix in nixpkgs (x86_64-linux)
https://github.com/NixOS/nixpkgs/pull/370305

../src/libexpr-tests/nix_api_expr.cc:138: Failure
Expected equality of these values:
  true
  is_valid_path
    Which is: false

[  FAILED  ] nix_api_expr_test.nix_build_drv (50 ms)
unknown file: Failure
C++ exception with description "nix_err_code(ctx) != NIX_OK, message: error: builder for '/build/tests_nix-store.ma223o/my_nix_store/c9y864ic046rwpb15hlgwrz8n251rb0r-letsbuild.drv' failed with exit code 1" thrown in the test body.

[  FAILED  ] nix_api_expr_test.nix_expr_realise_context (58 ms)

how to fix it?

20:47:51
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 Pak [don't ping; dm instead]I 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 [don't ping; dm instead] 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.eu@immae:immae.eu left the room.12:09:22

Show newer messages


Back to Room ListRoom Version: 6