pkgs-lib.formats: add mkStructuredType#372501
Conversation
72ca315 to
7f6a0a2
Compare
7f6a0a2 to
4b16cc4
Compare
4b16cc4 to
92c9b03
Compare
f634047 to
a99752d
Compare
a99752d to
500b84c
Compare
500b84c to
b82aadf
Compare
|
Resolved merge conflict |
|
This should probably target staging |
b82aadf to
d5811db
Compare
d5811db to
a8d3638
Compare
a8d3638 to
c5cdad7
Compare
Are we missing tests for nullability then? |
|
Yes, nothing is using nullability at the moment. Planning to rework this later, is it fine if we just open a fixup PR to staging with the parameter comment added? |
Why do you think that? AIUI this just needs a freeform type with pkgs.formats.foo and a value set to null. Doesn't sound exotic to me at all. |
|
Sorry, I think I was a bit unclear. None of the formats that use this helper function are explicitly setting |
|
Nvm, I just saw that nullability just moved from |
currently the types are pretty redundant. i hope to improve via MR.
tested via
nix-build . -A tests.pkgs-lib.formatsnot sure if this should be documented, because i see this more as an internal function.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.