diff --git a/src/index.js b/src/index.js index f881e07..f2ff6ea 100644 --- a/src/index.js +++ b/src/index.js @@ -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;