mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
home-manager: fix pass-through option passing
This resolves, e.g., the errors occurring when passing empty arguments like `--option builders ''`. Closes #967
This commit is contained in:
parent
df4db50632
commit
7c30831e8f
1 changed files with 2 additions and 2 deletions
|
@ -93,14 +93,14 @@ function doBuildAttr() {
|
||||||
nix build \
|
nix build \
|
||||||
-f "<home-manager/home-manager/home-manager.nix>" \
|
-f "<home-manager/home-manager/home-manager.nix>" \
|
||||||
$extraArgs \
|
$extraArgs \
|
||||||
${PASSTHROUGH_OPTS[*]} \
|
"${PASSTHROUGH_OPTS[@]}" \
|
||||||
--argstr confPath "$HOME_MANAGER_CONFIG" \
|
--argstr confPath "$HOME_MANAGER_CONFIG" \
|
||||||
--argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE"
|
--argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE"
|
||||||
else
|
else
|
||||||
nix-build \
|
nix-build \
|
||||||
"<home-manager/home-manager/home-manager.nix>" \
|
"<home-manager/home-manager/home-manager.nix>" \
|
||||||
$extraArgs \
|
$extraArgs \
|
||||||
${PASSTHROUGH_OPTS[*]} \
|
"${PASSTHROUGH_OPTS[@]}" \
|
||||||
--argstr confPath "$HOME_MANAGER_CONFIG" \
|
--argstr confPath "$HOME_MANAGER_CONFIG" \
|
||||||
--argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE"
|
--argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue