!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

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

Load older messages


SenderMessageTime
9 Dec 2025
@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
@Ericson2314:matrix.orgJohn EricsonOK so I was fixing the wrong branch :)17:10:35
@shine:proqqul.netTaeer Bar-Yamhonestly both branches seem broken17:11:19
@Ericson2314:matrix.orgJohn Ericsoncode branch17:11:23
@Ericson2314:matrix.orgJohn Ericsonoh?17:11:25
@shine:proqqul.netTaeer Bar-Yam even if nixpkgs is somehow getting away with it, it's still true that just setting allowedReferences = null; in a derivation that references something will fail 17:12:06
@shine:proqqul.netTaeer Bar-Yamat least it does when I try it17:12:25
@shine:proqqul.netTaeer Bar-YamI don't know what I'm doing differently than nixpkgs 😭17:12:33
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): https://github.com/NixOS/nix/pull/14754 I made this one with just the cleanup, and a warning for when exportReferencesGraph is not an object as we expect 17:45:03
@Ericson2314:matrix.orgJohn Ericson and ^ Taeer Bar-Yam 17:45:18
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @Ericson2314:matrix.org
Sergei Zimmerman (xokdvium): https://github.com/NixOS/nix/pull/14754 I made this one with just the cleanup, and a warning for when exportReferencesGraph is not an object as we expect
Have you been able to repro with 2.4 / other versions too?
17:46:23
@shine:proqqul.netTaeer Bar-YamI'm super braindead right now, but I'll try to take a look this week17:46:36
@Ericson2314:matrix.orgJohn Ericsonthat PR is suppose to have 0 behavioral changes outside of diagnostics17:46:45
@Ericson2314:matrix.orgJohn Ericsonnot supposed to help or hurt 25.1117:46:58
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @Ericson2314:matrix.org
that PR is suppose to have 0 behavioral changes outside of diagnostics
For the next release cycle then since it’s a refactor
17:47:22

Show newer messages


Back to Room ListRoom Version: 6