Documentation Gaps: Difference between revisions
Phanirithvij (talk | contribs) replace search.nix.gsc.io with github code search, since it is inaccessible |
m Provide a reason in the page for the merge. |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Merge|FAQ|This is quite literally an FAQ outside of the FAQ page.}} | |||
This page details some known documentation gaps in the official NixOS/Nixpkgs documentation. | |||
== What are setup hooks? == | == What are setup hooks? == | ||
Line 22: | Line 18: | ||
AFAICT, <code>nix-env</code> somehow assembles a <code>buildEnv</code> expression and the realization of that expression becomes a profile, somehow. | AFAICT, <code>nix-env</code> somehow assembles a <code>buildEnv</code> expression and the realization of that expression becomes a profile, somehow. | ||
# [https://github.com/NixOS/nix/blob/ | # [https://github.com/NixOS/nix/blob/2c42a9dbaa805f4f29561d9a1c10b41dfe98dcfa/src/nix-env/user-env.cc#L123 '''nix'''/user-env/] | ||
# [https://github.com/NixOS/nix/blob/master/ | # [https://github.com/NixOS/nix/blob/master/src/nix-env/buildenv.nix '''nix'''/src/nix-env/buildenv.nix] | ||
# [https://github.com/NixOS/nix/ | # [https://github.com/NixOS/nix/blob/master/src/libstore/builtins/buildenv.cc '''nix'''/src/libstore/builtins/buildenv.cc] | ||
'''#1''' loads the nix file in '''#2''' and uses it to merge everything together, and '''#2''' uses a copy of '''#3''' that was compiled when nix got built. | '''#1''' loads the nix file in '''#2''' and uses it to merge everything together, and '''#2''' uses a copy of '''#3''' that was compiled when nix got built. |