writeShellApplication: don't prefix empty PATH

This commit is contained in:
Jonathan Ringer 2022-08-22 11:52:27 -07:00 committed by Bjørn Forsman
parent fa066dd74e
commit dc607cf67b

View file

@ -286,8 +286,10 @@ rec {
set -o errexit
set -o nounset
set -o pipefail
'' + lib.optionalString (runtimeInputs != [ ]) ''
export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
'' + ''
${text}
'';