build-fhs-user-env-bubblewrap: consistent camelCase

gstqt5
Jörg Thalheim 2020-08-17 08:49:34 +01:00 committed by Atemu
parent 3f5157f122
commit b1d86d0e51
2 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ let
exec ${run} "$@"
'';
bwrap_cmd = { init_args ? "" }: ''
bwrapCmd = { initArgs ? "" }: ''
blacklist="/nix /dev /proc /etc"
ro_mounts=""
for i in ${env}/*; do
@ -98,17 +98,17 @@ let
${etcBindFlags} \
$ro_mounts \
$auto_mounts \
${init runScript}/bin/${name}-init ${init_args}
${init runScript}/bin/${name}-init ${initArgs}
'';
bin = writeShellScriptBin name (bwrap_cmd { init_args = ''"$@"''; });
bin = writeShellScriptBin name (bwrapCmd { initArgs = ''"$@"''; });
in runCommandLocal name {
inherit meta;
passthru = passthru // {
env = runCommandLocal "${name}-shell-env" {
shellHook = bwrap_cmd {};
shellHook = bwrapCmd {};
} ''
echo >&2 ""
echo >&2 "*** User chroot 'env' attributes are intended for interactive nix-shell sessions, not for building! ***"

View File

@ -99,14 +99,14 @@ let
};
# setup library paths only for the targeted architecture
setupLibDirs_target = ''
setupLibDirsTarget = ''
# link content of targetPaths
cp -rsHf ${staticUsrProfileTarget}/lib lib
ln -s lib lib${if is64Bit then "64" else "32"}
'';
# setup /lib, /lib32 and /lib64
setupLibDirs_multi = ''
setupLibDirsMulti = ''
mkdir -m0755 lib32
mkdir -m0755 lib64
ln -s lib64 lib
@ -124,8 +124,8 @@ let
ln -Ls ${staticUsrProfileTarget}/lib/32/ld-linux.so.2 lib/
'';
setupLibDirs = if isTargetBuild then setupLibDirs_target
else setupLibDirs_multi;
setupLibDirs = if isTargetBuild then setupLibDirsTarget
else setupLibDirsMulti;
# the target profile is the actual profile that will be used for the chroot
setupTargetProfile = ''