storePath
builtins.storePath
Primop
Docs pulled from | This Revision | about 3 hours ago
Takes 1 arguments
path
This function allows you to define a dependency on an already
existing store path. For example, the derivation attribute src = builtins.storePath /nix/store/f1d18v1y…-source
causes the
derivation to depend on the specified path, which must exist or
be substitutable. Note that this differs from a plain path
(e.g. src = /nix/store/f1d18v1y…-source
) in that the latter
causes the path to be copied again to the Nix store, resulting
in a new path (e.g. /nix/store/ld01dnzc…-source-source
).
Not available in pure evaluation mode.
See also builtins.fetchClosure
.
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
Noogle detected
Detected Type
storePath :: StorePath -> StorePath
Implementation
This function is implemented in c++ and is part of the native nix runtime.