!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

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

Load older messages


SenderMessageTime
8 Dec 2025
@Ericson2314:matrix.orgJohn Ericson
In reply to @joerg:thalheim.io

John Ericson: looks like there is some issue now when using the current stable nix against a new nix daemon?

clan-env % nix develop
path '/home/joerg/git/clan-core/pkgs/clan-cli' does not contain a 'flake.nix', searching up
error:
       … while checking derivation '/nix/store/v8qnm8aabm0fp0v2xf3cavsgwqfgc2bk-clan-env.drv'

       error: derivation has incorrect deferred output, should be '/nix/store/jq6nq5bvdv23xdjajsaj2ay6vni5bkki-clan-env'

clan-env % real-which nix
/nix/store/ah8kqqslr7jig18fd4hzmdk2bhbqs8a7-nix-2.31.2/bin/nix


clan-env % /nix/store/7ykgjirdiwxkdwyh3hypd27ifx7aws29-nix-2.33.0pre20251208_5b5d4cb/bin/nix develop
path '/home/joerg/git/clan-core/pkgs/clan-cli' does not contain a 'flake.nix', [joerg@eve clan-cli]$

Woah!
17:02:25
@Ericson2314:matrix.orgJohn EricsonAre you doing CA derivations?17:02:31
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @dramforever:matrix.org
the tests just fail on linux without sandbox...
Let me guess, `/homeless-shelter’ exists?
17:04:27
@dramforever:matrix.orgdramforeveri don't think so17:05:11
@dramforever:matrix.orgdramforeveri can try to mess with sandbox-build-dir though17:08:35
@dramforever:matrix.orgdramforevermaybe it's some cgroup and auto-allocate-uids stuff?17:18:34
@joerg:thalheim.ioMic92no.17:29:44
@joerg:thalheim.ioMic92no to what?17:37:20
@joerg:thalheim.ioMic92Probably should be merged before the release: https://github.com/NixOS/nix/pull/1473920:16:00
@joerg:thalheim.ioMic92https://github.com/NixOS/nix/pull/14743 and now this one as well22:27:09
9 Dec 2025
@niksnut:matrix.orgEelcoRelease notes PR, please add anything relevant that's missing: https://github.com/NixOS/nix/pull/1475215:57:43
@keiichi:matrix.orgteto I cant edit but for #8871 (teto) it's a PR that makes nix flake show keep going even when an attribute in "packages" is not a derivation. ie., it lists all attributes and names the ones that are not derivations (it previously didn't so you have to check which one was not a derivation) 16:31:35
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): what exactly did you find with 2.4 and nulls? 16:56:00
@Ericson2314:matrix.orgJohn Ericsonmy guess that it never parsed the nulls, but also back then it wasn't making a data structure16:56:20
@Ericson2314:matrix.orgJohn Ericson it was just "shotgun parsing" in LocalDerivationGoal 16:56:30
@Ericson2314:matrix.orgJohn Ericsonwas there an error?16:56:36
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @Ericson2314:matrix.org
my guess that it never parsed the nulls, but also back then it wasn't making a data structure
It also failed to build the derivation with a message like expected a list
16:56:53
@Ericson2314:matrix.orgJohn Ericsonhuh ok16:57:08
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)derivation-show also16:57:16
@Ericson2314:matrix.orgJohn Ericsonso Nixpkgs has just been wrong this whole time?16:57:17
@Ericson2314:matrix.orgJohn Ericson nix derivation show made an error? 16:57:47
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @Ericson2314:matrix.org
so Nixpkgs has just been wrong this whole time?
I guess so. I can double check since a was doing that in a rush this morning, but I tested 2.4’s show-derivation and building too.
16:58:14
@Ericson2314:matrix.orgJohn EricsonI would not expect 2.4 to make an error about this since the parsing is in the builder16:58:50
@Ericson2314:matrix.orgJohn Ericsonbut maybe you just meant you checked what the derivation looked like?16:59:04
@Ericson2314:matrix.orgJohn Ericson(in case it was a nix language -> parsing issue?)16:59:24
@shine:proqqul.netTaeer Bar-Yam It seems like nixpkgs has been "wrong", but for some reason that I still can't figure out, it does work what they're doing (in the case of __structuredAttrs = false;) 17:08:03
@Ericson2314:matrix.orgJohn Ericsonthat null becomes the empty string?17:08:55
@Ericson2314:matrix.orgJohn Ericsonso structured attrs true was always broken, but not structured attrs false?17:09:17
@shine:proqqul.netTaeer Bar-Yam

No. null becomes empty string in my own example that i cooked up, not using inputDerivation. In that case it fails to build.

inputDerivation somehow gets rid of allowedReferences, despite setting it to null, and it succeeds to build

17:09:54
@shine:proqqul.netTaeer Bar-YamI think so17:10:12

Show newer messages


Back to Room ListRoom Version: 6