From 8ad8f9d26685898f266f03ae745d2b4421713531 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Fri, 17 Mar 2023 13:25:39 +0100 Subject: [PATCH] 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. --- doc/stdenv/stdenv.chapter.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index b3f9f681da4c..2d4c2eefb5af 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 '' -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