writeShellApplication: document runtimeShell == stdenv.shell assumption

This commit is contained in:
Bernardo Meurer
2021-11-08 09:33:37 -08:00
parent 014b23232f
commit 949182a4a2
+4
View File
@@ -256,6 +256,10 @@ rec {
* Automatically includes sane set of shellopts (errexit, nounset, pipefail)
* and handles creation of PATH based on runtimeInputs
*
* Note that the checkPhase uses stdenv.shell for the test run of the script,
* while the generated shebang uses runtimeShell. If, for whatever reason,
* those were to mismatch you might lose fidelity in the default checks.
*
* Example:
* # Writes my-file to /nix/store/<store path>/bin/my-file and makes executable.
* writeShellApplication {