1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-23 02:39:37 +01:00

Doxygen comment

This commit is contained in:
Eelco Dolstra 2025-09-08 09:18:52 +02:00
parent bef0bec012
commit eff5043571

View file

@ -227,11 +227,13 @@ const static std::string getEnvSh =
#include "get-env.sh.gen.hh" #include "get-env.sh.gen.hh"
; ;
/* Given an existing derivation, return the shell environment as /**
initialised by stdenv's setup script. We do this by building a * Given an existing derivation, return the shell environment as
modified derivation with the same dependencies and nearly the same * initialised by stdenv's setup script. We do this by building a
initial environment variables, that just writes the resulting * modified derivation with the same dependencies and nearly the same
environment to a file and exits. */ * initial environment variables, that just writes the resulting
* environment to a file and exits.
*/
static StorePath getDerivationEnvironment(ref<Store> store, ref<Store> evalStore, const StorePath & drvPath) static StorePath getDerivationEnvironment(ref<Store> store, ref<Store> evalStore, const StorePath & drvPath)
{ {
auto drv = evalStore->derivationFromPath(drvPath); auto drv = evalStore->derivationFromPath(drvPath);