Lix | 1104 Members | |
| Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms | 294 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 Oct 2025 | ||
| I've considered figuring out some infrastructure for it, but there are higher priority fixes to the docs access situation | 15:52:17 | |
| 18:15:18 | ||
In reply to @lillecarl:matrix.org Ohh, so those ended up being included in the builtins at some point? Nice. Last time I checked (few years ago) people were too concerned about possible serialization issues and having to maintain compatibility over long time, so JSON was not supported as a builtin. | 20:31:57 | |
| fromJSON has existed since nix 1.8 (2014) and toJSON is from 1.7 (2013) | 20:46:59 | |
| But that's just for arbitrary data and chokes sometimes e.g. functions | 20:49:56 | |
| Wtf. Why I didn’t find a usable JSON thing when I needed it, then. :o | 21:16:43 | |
| Maybe your memory is mixing JSON and YAML. YAML is still IFD | 21:24:54 | |
They were talking about derivation serialization, which is different from Nix expression serialization. You can view derivation serialization if you run something like nix derivation show nixpkgs#hello (for JSON), while the usual serialization of derivation is to ATerm, a weird old format you can view with something like nix eval nixpkgs#hello.drvPath | xargs cat. These are the "*.drv" files references sometimes. | 21:44:57 | |
* They were talking about derivation serialization, which is different from Nix expression serialization. You can view derivation serialization if you run something like nix derivation show nixpkgs#hello (for JSON), while the usual serialization of derivation is to ATerm, a weird old format you can view with something like nix eval nixpkgs#hello.drvPath | xargs cat. These are the "*.drv" files referenced sometimes. | 21:45:22 | |
| 23 Oct 2025 | ||
"I’d so much prefer writing Nix over JSON any day, but last time I checked (way over a year ago) that was not supported use case." sounds like just fromJSON/toJSON to me? | 00:19:58 | |
| a stable JSON serialization format for Nix derivations would not help with writing Nix over JSON | 00:20:12 | |
| unless the JSON you want to write happens to be exactly what the stable JSON derivation format would be :) | 00:20:24 | |
| The context here is i want to record build provenance info in Rekor. For which i need some canonical serialization of the build. I was using the json serialization now. But i think ATerm might be more honest? | 00:41:48 | |
| I guess I'll just also notarize the version of Lix used and then it doesn't matter wtf I do | 00:42:27 | |
| good | 00:44:45 | |
| 10:54:17 | ||
Why is it that I can build this file but not eval it? I just wanna get the storePath during eval
| 12:56:26 | |
*
Why is it that I can build this file but not eval it? I just wanna get the storePath when evaluating
| 12:56:53 | |
| .outPath ? | 12:57:25 | |
| also | 12:57:35 | |
| i don't think nix eval does auto call semantics | 12:57:44 | |
| you need to apply the function | 12:57:51 | |
Thanks! I think I can make it work with this 😄 | 13:01:33 | |
| 13:15:50 | ||
| 13:19:05 | ||
| 24 Oct 2025 | ||
| 02:01:05 | ||
| lix module overlay without flakes question: i'm experimenting with removing flakes from my system but am running into an issue where some override accesses the
in my configuration.nix gets me
(with my hacky fix for this commented out) | 10:46:28 | |
| specifically it only happens when adding colmena to my system, since that causes nix-eval-jobs to be evaluated(which this is an overlay for) | 10:47:18 | |
| i had a similar problem a while back, iirc this is a known issue. the fix which i think raito recommended was:
| 11:41:02 | |
so basically what i did, intentionally give it the rev it wants, ig? | 11:42:59 | |