mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #333081 from nrabulinski/incus-fix
incus.client: fix macOS builds
This commit is contained in:
commit
bb664fa61e
|
@ -30,6 +30,12 @@ buildGoModule {
|
|||
subPackages = [ "cmd/incus" ];
|
||||
|
||||
postInstall = ''
|
||||
# Needed for builds on systems with auto-allocate-uids to pass.
|
||||
# Incus tries to read ~/.config/incus while generating completions
|
||||
# to resolve user aliases.
|
||||
export HOME="$(mktemp -d)"
|
||||
mkdir -p "$HOME/.config/incus"
|
||||
|
||||
installShellCompletion --cmd incus \
|
||||
--bash <($out/bin/incus completion bash) \
|
||||
--fish <($out/bin/incus completion fish) \
|
||||
|
|
Loading…
Reference in a new issue