Skip to content

Commit

Permalink
writeShellApplication: don't prefix empty PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer authored and bjornfor committed Aug 23, 2022
1 parent fa066dd commit dc607cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/build-support/trivial-builders.nix
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ rec {
set -o errexit
set -o nounset
set -o pipefail
'' + lib.optionalString (runtimeInputs != [ ]) ''
export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
'' + ''
${text}
'';
Expand Down

0 comments on commit dc607cf

Please sign in to comment.