diff options
author | Florian Klink <flokli@flokli.de> | 2023-01-04T18·26+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-01-04T21·58+0000 |
commit | 407a9cd90f3a1ea3bb0cf4ced85cfacb29881b0c (patch) | |
tree | 410abc93db13321114090a855e58b070c9a4069f /tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json | |
parent | 77cc6a1f785caad0c5fb84457013177a99aaf158 (diff) |
chore(tvix/derivation): align json serialization with nix output r/5590
Use the #[serde(rename = "…")] field attributes to match the field names that Nix uses in its JSON output (nix show-derivation). This allows us to just re-use the exact same fixtures from go-nix, without manual post-massaging. Change-Id: Ifd5c08e43cd4f50d5e02903eccd8cb37230b70a6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7757 Reviewed-by: jrhahn <mail.jhahn@gmail.com> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json')
-rw-r--r-- | tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json b/tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json index f6bb5be234d1..957a85ccab82 100644 --- a/tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json +++ b/tvix/derivation/src/tests/derivation_tests/4wvvbi4jwn0prsdxb7vs673qa5h9gr7x-foo.drv.json @@ -1,23 +1,23 @@ { - "outputs": { - "out": { - "path": "/nix/store/5vyvcwah9l9kf07d52rcgdk70g2f4y13-foo" - } - }, - "input_sources": [], - "input_derivations": { - "/nix/store/0hm2f1psjpcwg8fijsmr4wwxrx59s092-bar.drv": [ - "out" - ] - }, - "platform": ":", + "args": [], "builder": ":", - "arguments": [], - "environment": { + "env": { "bar": "/nix/store/4q0pg5zpfmznxscq3avycvf9xdvx50n3-bar", "builder": ":", "name": "foo", "out": "/nix/store/5vyvcwah9l9kf07d52rcgdk70g2f4y13-foo", "system": ":" - } + }, + "inputDrvs": { + "/nix/store/0hm2f1psjpcwg8fijsmr4wwxrx59s092-bar.drv": [ + "out" + ] + }, + "inputSrcs": [], + "outputs": { + "out": { + "path": "/nix/store/5vyvcwah9l9kf07d52rcgdk70g2f4y13-foo" + } + }, + "system": ":" } |