diff options
author | Arnout Engelen <arnout@bzzt.net> | 2023-03-17 13:25:39 +0100 |
---|---|---|
committer | Arnout Engelen <arnout@bzzt.net> | 2023-03-17 13:30:57 +0100 |
commit | 8ad8f9d26685898f266f03ae745d2b4421713531 (patch) | |
tree | 1ea87735f03b0ad806b3ea671132b2cfc5e9b0d4 /doc/stdenv | |
parent | 7067edc68c035e21780259ed2d26e1f164addaa2 (diff) |
doc/stdenv: add quotes to run phases with newlines
Without quotes newlines in environment variables get converted to spaces, so any overridden phases would not work.
Diffstat (limited to 'doc/stdenv')
-rw-r--r-- | doc/stdenv/stdenv.chapter.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index b3f9f681da4c6..2d4c2eefb5af2 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -101,11 +101,11 @@ To build a `stdenv` package in a [`nix-shell`](https://nixos.org/manual/nix/unst ```bash nix-shell '<nixpkgs>' -A some_package -eval ${unpackPhase:-unpackPhase} +eval "${unpackPhase:-unpackPhase}" cd $sourceRoot -eval ${patchPhase:-patchPhase} -eval ${configurePhase:-configurePhase} -eval ${buildPhase:-buildPhase} +eval "${patchPhase:-patchPhase}" +eval "${configurePhase:-configurePhase}" +eval "${buildPhase:-buildPhase}" ``` To modify a [phase](#sec-stdenv-phases), first print it with |