toDerivation
lib.attrsets.toDerivation
Docs pulled from | This Revision | about 1 hour ago
Converts a store path to a fake derivation.
Inputs
path
-
A store path to convert to a derivation.
Type
toDerivation :: Path -> Derivation
Noogle detected
Implementation
The following is the current implementation of this function.
toDerivation =
path:
let
path' = builtins.storePath path;
res =
{ type = "derivation";
name = sanitizeDerivationName (builtins.substring 33 (-1) (baseNameOf path'));
outPath = path';
outputs = [ "out" ];
out = res;
outputName = "out";
};
in res;