!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

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

Load older messages


SenderMessageTime
9 Dec 2025
@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
@Ericson2314:matrix.orgJohn Ericsonthat's fine17:47:35
@Ericson2314:matrix.orgJohn Ericson(unless we want 2.33 to have 25.11)17:47:50
@Ericson2314:matrix.orgJohn Ericson* (unless we want 2.33 to have 25.11, maybe)17:47:59
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @Ericson2314:matrix.org
that PR is suppose to have 0 behavioral changes outside of diagnostics
So the old PR should be closed then since it’s always behaved this way? I can double-check once more when I’m at the keyboard
17:54:06
@Ericson2314:matrix.orgJohn Ericson I kinda do want null as a new feature rather than bug fix, but yes that takes the urgency away 18:00:21
@Ericson2314:matrix.orgJohn Ericsonmarked it as draft18:01:10
@shine:proqqul.netTaeer Bar-YamI will make a PR to nixpkgs inshallah this week18:02:16
@shine:proqqul.netTaeer Bar-Yamand then hopefully they'll backport it to 25.11? we'll see18:04:56
@Ericson2314:matrix.orgJohn Ericson Taeer Bar-Yam: yeah sounds good 18:17:44
@Ericson2314:matrix.orgJohn EricsonIt would be still nice to to know why non-structured attrs was working18:17:56
@Ericson2314:matrix.orgJohn Ericsonbut I just looked at 2.318:18:00
@Ericson2314:matrix.orgJohn Ericsonand having it be an empty string in non-structured-attrs mode also seems wrong18:18:19
@Ericson2314:matrix.orgJohn Ericson in addition to null in structured attrs mode 18:18:27
@Ericson2314:matrix.orgJohn Ericsonhttps://github.com/NixOS/nix/pull/14755/files also here is a non-refactor version of just the warning and a test that I think would be nice to skip in before the release18:19:02

There are no newer messages yet.


Back to Room ListRoom Version: 6