Use more accurate names for some of the interpreted fields

master
Sven Slootweg 7 years ago
parent c42d9ade39
commit f3792d3a5c

@ -54,12 +54,12 @@ function parseDerivation(text) {
return {
outputs: mapArray(root.items[0], (item) => {
return mapTuple(item, ["name", "path", "hashAlgorithm", "hash"]);
return mapTuple(item, ["name", "path", "expectedHashAlgorithm", "expectedHash"]);
}),
inputDerivations: mapArray(root.items[1], (item) => {
return mapTuple(item, ["path", "inputDerivations"], (value, i) => {
return mapTuple(item, ["path", "wantedOutputs"], (value, i) => {
if (i === 1) {
/* An `array` of inputDerivations */
/* An `array` of outputs */
return value.items;
} else {
return value;

Loading…
Cancel
Save