replace-dependency.nix: Give attr a slightly more meaningful name of drvHash

This commit is contained in:
Russell O'Connor 2015-11-16 17:44:03 -05:00 committed by Russell O'Connor
parent afaf712ee7
commit 94e68bf9ee

View File

@ -78,6 +78,6 @@ let
})
(filter dependsOnOld (builtins.attrNames references))) // rewrittenDeps;
attr = discard (toString drv);
drvHash = discard (toString drv);
in assert (stringLength (drvName (toString oldDependency)) == stringLength (drvName (toString newDependency)));
rewriteMemo.${attr} or (warn "replace-dependency.nix: Derivation ${attr} does not depend on ${discard (toString oldDependency)}\n" drv)
rewriteMemo.${drvHash} or (warn "replace-dependency.nix: Derivation ${drvHash} does not depend on ${discard (toString oldDependency)}\n" drv)