1
0
Fork 1
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:
Aleksana 2024-08-08 10:39:14 +08:00 committed by GitHub
commit bb664fa61e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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