1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-08 10:09:49 +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

(cherry picked from commit 7c30831e8f)
This commit is contained in:
oxalica 2020-01-01 10:26:37 +08:00 committed by Robert Helgesson
parent b646623a39
commit 10d2c4e7e4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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