Skip to content

Commit

Permalink
buildFHSEnvBubblewrap: extraPreBwrapCmds after variable initialisation (
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Oct 5, 2024
2 parents e385a85 + 9bc6d23 commit 05fef77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/build-support/build-fhsenv-bubblewrap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ let

indentLines = str: concatLines (map (s: " " + s) (filter (s: s != "") (splitString "\n" str)));
bwrapCmd = { initArgs ? "" }: ''
${extraPreBwrapCmds}
ignored=(/nix /dev /proc /etc ${optionalString privateTmp "/tmp"})
ro_mounts=()
symlinks=()
etc_ignored=()
${extraPreBwrapCmds}
# loop through all entries of root in the fhs environment, except its /etc.
for i in ${fhsenv}/*; do
path="/''${i##*/}"
Expand Down

0 comments on commit 05fef77

Please sign in to comment.